-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.48 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
{
"root": true,
"plugins": [
"@typescript-eslint"
],
"extends": [
"airbnb",
"airbnb-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:storybook/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"ignorePatterns": [
"*.test.ts",
"*.test.tsx",
"*.stories.tsx"
],
"rules": {
"class-methods-use-this": "off", // TODO: remove this when not necessary
"indent": "off",
"linebreak-style": ["error", "unix"],
"no-bitwise": "off",
"no-console": "off",
"no-control-regex": "off",
"no-prototype-builtins": "off", // in order to support .hasOwnProperty() loop optimization
"no-restricted-syntax": "off", // in order to support `for (const key in <array>)` loop optimization
"no-underscore-dangle": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-static-element-interactions": "off",
"prefer-destructuring": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/function-component-definition": "off",
"react/jsx-one-expression-per-line": "off",
"react/no-danger": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"yoda": "off"
}
}