forked from awell-health/ui-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
84 lines (84 loc) · 2.24 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
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
80
81
82
83
84
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaFeatures": { "legacyDecorators": true, "jsx": true },
"ecmaVersion": 2020,
"project": "./tsconfig.json"
},
"settings": {
"react": { "version": "detect" },
"import/resolver": {
"alias": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"map": [
["src", "./src"]
]
}
}
},
"rules": {
"max-len": 0,
"prefer-object-spread": 1,
"import/prefer-default-export": 0,
"@typescript-eslint/no-explicit-any": 1,
"import/no-unresolved": [
"error",
{ "ignore": ["storybook"] }
],
"react/jsx-filename-extension": [2, { "extensions": [".jsx", ".tsx"] }],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/rollup/**", // directory with rollup configs
"**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", // tests where the extension or filename suffix denotes that it is a test
"**/stories/**", // storybook stories
"**/*.stories.tsx", // storybook stories
"**/*.story.tsx", // storybook stories
"**/setupTests.ts" // test setup
],
"optionalDependencies": false
}
],
"@typescript-eslint/no-empty-function": 1,
"prettier/prettier": "error",
"react/jsx-fragments": 0,
"react/prop-types": 0,
"react/default-props-match-prop-types": 0,
"react/jsx-props-no-spreading": 0,
"@typescript-eslint/no-var-requires": 1,
"import/extensions": [
"error",
"ignorePackages",
{
"web.js": "never",
"web.jsx": "never",
"web.ts": "never",
"web.tsx": "never",
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never",
"graphql": "always"
}
]
}
}