forked from spo-iitk/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
65 lines (64 loc) · 2.09 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
54
55
56
57
58
59
60
61
62
63
64
65
{
"parser": "@typescript-eslint/parser",
"extends": [
"react-app",
"prettier",
"next/core-web-vitals",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"env": {
"es6": true
},
"parserOptions": {
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"indent": ["error", "tab"],
"quotes": ["error", "double"],
"semi": ["error", "never"],
"eol-last": 1,
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
"import/default": "off",
"react/prop-types": 0,
"react/react-in-jsx-scope": 0,
"react/display-name": 0,
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"jsx-a11y/anchor-is-valid": 0,
"import/no-unresolved": 0,
"sort-imports": ["error", { "ignoreCase": true, "ignoreDeclarationSort": true }],
"import/order": [
"error",
{
"groups": [["external", "builtin"], "internal", ["parent", "sibling", "index"]],
"pathGroups": [
{ "pattern": "env", "group": "internal" },
{ "pattern": "types", "group": "internal" },
{ "pattern": "components/**", "group": "internal" },
{ "pattern": "contexts/**", "group": "internal" },
{ "pattern": "hooks/**", "group": "internal" },
{ "pattern": "pages/**", "group": "internal" },
{ "pattern": "views/**", "group": "internal" },
{ "pattern": "utils/**", "group": "internal" },
{ "pattern": "public/**", "group": "internal", "position": "after" },
{ "pattern": "posts/**", "group": "internal", "position": "after" }
],
"newlines-between": "always",
"pathGroupsExcludedImportTypes": ["internal"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
}