-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
42 lines (41 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
40
41
42
{
"extends": [
"airbnb",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".d.ts"],
"moduleDirectory": ["node_modules", "src/"]
}
},
"project": {}
},
"env": {
"browser": true,
"jest": true
},
"rules": {
"no-tabs": "off",
"linebreak-style": ["error", "windows"],
"indent": ["error", "tab"],
"react/jsx-indent": ["error", "tab"],
"react/jsx-indent-props": ["error", "tab"],
"react/jsx-props-no-spreading": "off",
"react/function-component-definition": "off",
"comma-dangle": ["error", "never"],
"import/extensions": ["error", "never"],
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"react/require-default-props": "off",
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": ["**/*.test.tsx", "**/*.spec.tsx", "utilities/*.ts"] }
]
}
}