-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
53 lines (53 loc) · 1.36 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
{
"env": {
"es2021": true,
"node": true
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"next/core-web-vitals",
"plugin:tailwindcss/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"import/prefer-default-export": "off",
"no-console": "warn",
"no-var": "warn",
"no-html-link-for-pages": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "variable",
"filter": "_typename",
"format": null
},
{
"selector": "variable",
"format": ["PascalCase", "strictCamelCase", "UPPER_CASE"],
"leadingUnderscore": "allow"
},
{
"selector": "function",
"format": ["PascalCase", "strictCamelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
}
],
"indent": ["warn", 2],
"linebreak-style": ["warn", "unix"],
"quotes": ["warn", "double"],
"semi": ["warn", "never"],
"no-tabs": ["warn", { "allowIndentationTabs": false }]
}
}