generated from K4CZP3R/expressjs-api-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
80 lines (79 loc) · 2.17 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"env": {
"es2021": true,
"node": true,
"commonjs": true,
"jest": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:import/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier", "import"],
"rules": {
// "indent": ["error", 2],
"linebreak-style": ["warn", "unix"],
"no-console": "warn",
"camelcase": "warn",
"import/no-unresolved": ["warn", { "ignore": ["^@stofloos/"] }],
"import/order": [
"warn",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always-and-inside-groups"
}
],
"import/newline-after-import": ["warn", { "count": 1 }],
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^__", "varsIgnorePattern": "^__" }
],
"no-case-declarations": "warn",
"no-undef": "warn",
"no-useless-escape": "warn",
"no-redeclare": "warn",
"no-prototype-builtins": "warn",
"no-empty": "warn",
"no-constant-condition": "warn",
"no-func-assign": "warn",
"prettier/prettier": [
"error",
{
"arrowParens": "avoid",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 120,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": true,
"endOfLine": "lf"
}
]
}
}