generated from allen-cell-animated/github-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
42 lines (42 loc) · 1.21 KB
/
.eslintrc
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
{
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"es6": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"impliedStrict": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"comma-style": [1, "last"],
"curly": [1, "multi-line"],
"eol-last": 1,
"eqeqeq": 1,
"new-cap": 1,
"no-undef": "off",
"no-array-constructor": 1,
"no-mixed-spaces-and-tabs": 1,
"no-new-object": 1,
"no-redeclare": 0,
"no-shadow-restricted-names": 1,
"@typescript-eslint/no-unused-vars": ["error", { "args": "none", "varsIgnorePattern": "^_" }],
"no-unused-vars": 0, // Rely on typescript-eslint rule above
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
"@typescript-eslint/typedef": ["error", { "parameter": true }],
"radix": 1,
"react/jsx-uses-vars": 1,
"react/no-deprecated": 0,
"react/prop-types": 0,
"semi": 2,
"space-before-blocks": [1, "always"]
}
}