generated from companieshouse/node-review-web-starter-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
56 lines (56 loc) · 1.41 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
{
"ignorePatterns": ["views/", "node_modules/"],
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {}
},
"extends": ["standard"],
"parser": "@typescript-eslint/parser",
"overrides": [
{
"files": ["*.test.ts"],
"rules": {
"no-unused-expressions": "off"
}
}
],
"rules": {
"indent": ["error", 4],
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"semi": [2, "always"],
"no-unused-vars": "off",
"padded-blocks": "off",
"check-file/filename-naming-convention": [
"error",
{
"src/**/*.*": "CAMEL_CASE",
"test/**/*.*": "CAMEL_CASE"
},
{
"ignoreMiddleExtensions": true
}],
"check-file/folder-naming-convention": [
"error",
{
"src/**/": "KEBAB_CASE",
"test/**/": "KEBAB_CASE"
}
],
"sort-imports": ["error", {
"ignoreDeclarationSort": true
}],
"unused-imports/no-unused-imports": "error"
},
"plugins": [
"@typescript-eslint",
"check-file",
"unused-imports"
],
"env": {
"node": true,
"commonjs": true,
"jest": true,
"es6": true
}
}