-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.eslintrc.js
32 lines (29 loc) · 1.29 KB
/
.eslintrc.js
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
module.exports = {
extends: ["airbnb-typescript", "plugin:prettier/recommended", "plugin:react-hooks/recommended", "plugin:storybook/recommended"],
plugins: ["simple-import-sort", "prettier", "jest"],
rules: {
"@typescript-eslint/indent": "off",
"@typescript-eslint/quotes": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"no-nested-ternary": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"prettier/prettier": "error",
"react-hooks/exhaustive-deps": 2,
"simple-import-sort/imports": ["error", {
groups: [// Node.js builtins.
["^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)"], // Packages.
["^@?\\w"], // Side effect imports.
["^\\u0000"], // Parent imports. Put `..` last.
["^\\.\\.(?!/?$)", "^\\.\\./?$"], // Other relative imports. Put same-folder imports and `.` last.
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"]]
}]
},
parserOptions: {
project: "./tsconfig.eslint.json"
},
env: {
"jest/globals": true
}
};