-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
66 lines (66 loc) · 2.28 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
env: {
browser: true,
es2020: true,
},
extends: ['plugin:react/recommended', 'airbnb-typescript', 'prettier'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['react', 'prettier', '@typescript-eslint'],
rules: {
indent: 'off',
curly: ['warn', 'multi-line'],
radix: 'off',
'arrow-parens': 'off',
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
'react/jsx-filename-extension': 'off',
'react/prop-types': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-cycle': 'off',
'import/no-absolute-path': 'off',
'no-prototype-builtins': 'off',
'prettier/prettier': 'error',
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
// TODO - Get team preferences on below rules
'nonblock-statement-body-position': ['error', 'beside'],
'no-trailing-spaces': 'off',
'operator-linebreak': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'warn',
'max-len': 'off',
'comma-dangle': 'off',
'no-console': 'off',
'function-paren-newline': 'off',
'implicit-arrow-linebreak': 'off',
'arrow-body-style': 'off',
'one-var': 'off',
'consistent-return': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'object-curly-newline': 'off',
'react/no-array-index-key': 'off',
'react/no-unescaped-entities': 'off',
'no-use-before-define': 'off',
'no-alert': 'off',
'class-methods-use-this': 'off',
'no-fallthrough': 'off',
'react/jsx-props-no-spreading': 'warn',
camelcase: 'off',
'prefer-arrow-callback': ['warn', { allowNamedFunctions: true }],
'@typescript-eslint/naming-convention': 'off',
'react/require-default-props': 'off',
'import/no-extraneous-dependencies': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
};