-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
61 lines (57 loc) · 1.66 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
const off = 0;
const warn = 1;
const error = 2;
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'airbnb-base',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:react/recommended',
],
plugins: ['import', 'prettier', 'react', 'simple-import-sort'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
env: {
browser: 'true',
},
globals: {
window: true,
document: true,
},
rules: {
'@typescript-eslint/no-namespace': off,
'@typescript-eslint/interface-name-prefix': off,
'@typescript-eslint/explicit-function-return-type': off,
'@typescript-eslint/no-explicit-any': off,
'@typescript-eslint/no-parameter-properties': off,
'@typescript-eslint/camelcase': off,
'@typescript-eslint/explicit-member-accessibility': off,
'import/no-unresolved': off,
'import/prefer-default-export': off,
'react/no-unescaped-entities': off,
'react/prop-types': off,
'simple-import-sort/sort': error,
'no-inner-declarations': off,
'class-methods-use-this': off,
'no-useless-constructor': off,
'no-undef': off,
'no-return-assign': off,
'global-require': off,
camelcase: off,
'consistent-return': off,
'no-plusplus': off,
'no-nested-ternary': off,
},
settings: {
react: {
version: 'detect',
},
},
};