forked from scopisto/cogo-toast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (45 loc) · 1.57 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
43
44
45
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "react", "jsx-a11y", "import", "react-hooks"],
"extends": ["airbnb", "plugin:prettier/recommended", "prettier/react", "prettier/standard"],
"env": { "browser": true },
"rules": {
"@typescript-eslint/indent": ["warn", "tab", { "SwitchCase": 1 }],
"@typescript-eslint/no-explicit-any": "off",
"indent": ["warn", "tab", { "SwitchCase": 1 }],
"class-methods-use-this": "off",
"prettier/prettier": "error",
"no-underscore-dangle": "off",
"no-cond-assign": "off",
"no-plusplus": "off",
"no-tabs": "off",
"no-unused-vars": "off",
"eqeqeq": "warn",
"camelcase": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"react/destructuring-assignment": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-indent": ["error", "tab"],
"react/jsx-indent-props": ["error", "tab"],
"react/no-array-index-key": "warn",
"react/jsx-one-expression-per-line": "off",
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
"react/static-property-placement": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/anchor-is-valid": "off"
},
"settings": {
"import/extensions": [".js", ".jsx", ".ts", ".tsx", ".json"],
"import/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] },
"import/resolver": {
"node": { "extensions": [".js", ".jsx", ".ts", ".tsx", ".json"] }
}
}
}