-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
executable file
·44 lines (44 loc) · 1.71 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
{
"plugins": [ "prettier" ],
"extends": [ "airbnb-typescript", "react-app", "react-app/jest", "prettier" ],
"parser": "@typescript-eslint/parser",
"parserOptions": { "project": "./tsconfig.json" },
"settings": {
"import/resolver": { "typescript": { "alwaysTryTypes": true } }
},
"rules": {
"prettier/prettier": ["warn", {
"trailingComma": "all",
"singleQuote": true,
"jsxSingleQuote": true,
"printWidth": 120,
"arrowParens": "avoid" // Allow single argument without parentheses in arrow functions
}],
"import/no-anonymous-default-export": 0, // Allow "export default"
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/setupTests.ts", "**/*.test.js", "**/*.test.tsx", "**/*.spec.js"]}],
"react/jsx-one-expression-per-line": 0,
"import/order": ["warn", {
"groups": [
"external", // node_modules
"internal", // src folder
["parent", "sibling"]
],
"newlines-between": "always" // Separate all groups with new line
}],
"no-plusplus": 0,
"consistent-return": 0, // returning value is not required in arrow functions
"no-nested-ternary": 0,
"react/require-default-props": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/comma-dangle": 0,
"@typescript-eslint/no-shadow": 0, // Allow using same variable name in outer and function scopes
"@typescript-eslint/no-unused-vars": ["warn", {
"vars": "local",
"args": "after-used",
"ignoreRestSiblings": true
}],
"no-underscore-dangle": ["error", { "allow": ["__STORE__", "__REDUX_DEVTOOLS_EXTENSION__"] }],
"react/react-in-jsx-scope": 0,
"react/jsx-uses-react": 0
}
}