-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.js
46 lines (45 loc) · 1.33 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//@ts-check
/** @type { import("eslint").Linter.Config } */
module.exports = {
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'poi-plugin',
'prettier',
'prettier/@typescript-eslint',
'prettier/react',
],
parser: '@typescript-eslint/parser',
plugins: ['import', 'react', 'prettier', '@typescript-eslint'],
rules: {
'prettier/prettier': 'warn',
'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never',
tsx: 'never',
js: 'never',
jsx: 'never',
},
],
'@typescript-eslint/camelcase': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-props-no-spreading': 'off',
'react/destructuring-assignment': 'off',
'import/prefer-default-export': 'off',
'no-underscore-dangle': 'off',
'react/state-in-constructor': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/interface-name-prefix': 'off', // FIXME: add this back after rework
'@typescript-eslint/no-use-before-define': 'off', // FIXME: whitelist `window`
},
}