-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
79 lines (79 loc) · 2.01 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"jest/globals": true,
"node": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"plugins": ["@typescript-eslint", "jest", "testing-library"],
"extends": [
"prettier",
"airbnb",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:storybook/recommended",
"plugin:jest/recommended",
"plugin:jest/style"
],
"ignorePatterns": ["node_modules", "dist", "out"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"overrides": [
{
"files": [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)"
],
"extends": ["plugin:testing-library/react"]
}
],
"rules": {
"import/prefer-default-export": 0,
"import/extensions": 0,
"no-unused-vars": "off",
"indent": "off",
"semi": "off",
"implicit-arrow-linebreak": "off",
"arrow-body-style": "warn",
"no-multiple-empty-lines": "off",
"no-trailing-spaces": "off",
"object-curly-spacing": "off",
"eol-last": "off",
"quotes": "off",
"padded-blocks": "off",
"no-empty": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-empty-function": "warn",
"import/no-extraneous-dependencies": 0,
"react/function-component-definition": 0,
"react/jsx-filename-extension": 0,
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"react/jsx-props-no-spreading": 0,
"@typescript-eslint/no-var-requires": 0,
"comma-spacing": 0,
"@typescript-eslint/no-inferrable-types": "warn",
"comma-dangle": 0,
"function-paren-newline": 0,
"react/require-default-props": 0
}
}