-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
41 lines (41 loc) · 1.14 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
{
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": ["./tsconfig.json"],
"tsconfigRootDir": "."
},
"plugins": ["@typescript-eslint", "import", "prettier", "sort-keys-fix"],
"root": true,
"rules": {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "memberLike",
"modifiers": ["private"],
"format": ["camelCase"],
"leadingUnderscore": "require"
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/prefer-readonly": "warn",
"import/named": "off",
"import/order": [
"warn",
{ "alphabetize": { "order": "asc" }, "newlines-between": "always" }
],
"sort-imports": ["warn", { "ignoreDeclarationSort": true }]
}
}