-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
39 lines (39 loc) · 1.11 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"plugins": [
"react",
"import",
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb-typescript",
// prettier must be last to avoid conflicts with "operator-linebreak", "no-confusing-arrow", "implicit-arrow-linebreak", etc.
"prettier"
],
"rules": {
"import/no-cycle": "warn",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"no-undef": "off",
"no-plusplus": "off",
"prettier/prettier": "warn",
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.stories.tsx", "**/*.test.ts", "**/*.test.tsx", "**/__tests__/*"]}],
"@typescript-eslint/no-unused-expressions": ["error", { "allowTernary": true }]
},
"settings": {
"react": {
"version": "detect"
}
}
}