-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy path.eslintrc
40 lines (40 loc) · 1.34 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
{
"extends": "airbnb",
"env": {
"browser": true,
"commonjs": true,
"jest": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-unused-vars": "error",
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "always-multiline"],
"default-case": "off",
"semi": ["error", "never"],
"import/extensions": ["error", { "js": "never", "scss": "always", "ts": "never" }],
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"indent": ["error", "tab", { "SwitchCase": 1 }],
"lines-between-class-members": "off",
"no-case-declarations": "off",
"no-tabs": "off",
"no-use-before-define": "off",
"no-unused-vars": "off",
"object-curly-newline": ["error", { "ObjectPattern": { "multiline": true } }],
"operator-linebreak": "off",
"react/destructuring-assignment": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".test.js", ".tsx"] }],
"react/jsx-indent": ["error", "tab"],
"react/jsx-indent-props": ["error", "tab"],
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/prefer-stateless-function": "off",
"react/prop-types": "off",
"react/static-property-placement": "off",
"spaced-comment": "off"
}
}