-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (44 loc) · 986 Bytes
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
"airbnb-base",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: [
"@typescript-eslint",
"prettier",
"eslint-plugin-import-helpers",
"unused-imports",
],
rules: {
"import/no-unresolved": "off",
"jsx-quotes": ["error", "prefer-double"],
"unused-imports/no-unused-imports": "error",
"import-helpers/order-imports": [
"warn",
{
newlinesBetween: "always", // new line between groups
groups: ["module", "/^@/", ["parent", "sibling", "index"]],
alphabetize: { order: "asc", ignoreCase: true },
},
],
"import/extensions": [
"error",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
},
};