-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.5 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es6": true
},
"root": true,
"extends": [
"airbnb",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:import/typescript"
],
"plugins": ["react", "@typescript-eslint", "jsx-a11y", "import"],
"rules": {
"react/prop-types": 0,
"react/jsx-one-expression-per-line": 0,
"import/imports-first": ["error", "absolute-first"],
"react/state-in-constructor": 0,
"react/jsx-filename-extension": 0,
"import/newline-after-import": 2,
"import/extensions": 0,
"import/prefer-default-export": 0,
"linebreak-style": 0,
"func-names": 0,
"no-console": 0,
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"no-restricted-syntax": [
"error",
{
"selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(error)|(warn)$/]",
"message": "Unexpected property on console object was called"
}
],
"prefer-arrow-callback": 0,
"no-underscore-dangle": 0,
"no-plusplus": 0,
"no-continue": 0,
"no-use-before-define": 0,
"no-nested-ternary": 0,
"@typescript-eslint/no-use-before-define": 0,
"prettier/prettier": 2,
"react/require-default-props": 0,
"react/react-in-jsx-scope": 0
},
"parser": "@typescript-eslint/parser",
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
]
}