-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
73 lines (72 loc) · 1.79 KB
/
.eslintrc
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
66
67
68
69
70
71
72
73
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"next/core-web-vitals"
],
"plugins": [
"@typescript-eslint",
"prettier"
],
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"requireConfigFile": false,
"sourceType": "module",
"ecmaVersion": 2022,
"ecmaFeatures": {
"jsx": true,
"impliedStrict": true
}
},
"globals":{
"JSX": "readonly"
},
"rules": {
"react/no-unescaped-entities": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "lf",
"singleQuote": true,
"block-closing-brace-newline-after": "always-multi-line",
"block-closing-brace-empty-line-before": "never",
"block-closing-brace-space-before": "always",
"block-opening-brace-space-after": "always",
"block-opening-brace-space-before": "always",
"block-closing-brace-newline-before": "always-multi-line",
"block-opening-brace-newline-after": "always-multi-line",
"tabs": false,
"indent_size": 2,
"trailingComma": "none",
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}]
}
],
"no-undef": "error",
"semi": 2,
"no-extra-semi": 2,
"quotes": [2, "single", "avoid-escape"],
// the following are turned off because this is an example repo
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-console": "off"
},
"overrides": [{
"files": ["*.cjs", "*.js"],
"rules":{
"@typescript-eslint/no-var-requires": "off"
}
}]
}