-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
39 lines (39 loc) · 1.07 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
{
"extends": [
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:import/recommended"
],
"plugins": ["react", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"import/resolver": {
"typescript": {}
},
"import/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] }
},
"rules": {
"prettier/prettier": ["error", { "singleQuote": true }],
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 0,
"react/jsx-filename-extension": [
2,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"eqeqeq": "error",
"import/order": ["error"],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"import/no-named-as-default-member": "off"
},
"ignorePatterns": ["*.config.js"]
}