-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
77 lines (74 loc) · 2.24 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
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
*/
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"@hmcts",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:mocha/recommended",
"plugin:prettier/recommended"
],
"ignorePatterns": [
"node_modules/",
"public/",
"functional-output/",
"govuk_modules/",
"dist",
"cookie-banner/"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"], // Specify it only for TypeScript files
"sourceType": "module",
"ecmaVersion": 2020
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"@typescript-eslint"
],
"root": true,
"rules": {
"@typescript-eslint/strict-boolean-expressions": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/unbound-method": "warn",
"no-process-env": "warn",
"line-comment-position": "warn",
"global-require": "warn",
"no-console": "warn",
"no-magic-numbers": "warn",
"no-sync": "warn",
"no-undefined": "warn",
"func-names": "warn",
"no-shadow": "warn",
"no-buffer-constructor": "warn",
"prefer-const": "warn",
"id-blacklist": "warn",
"no-prototype-builtins": "warn",
"consistent-return": "warn",
"no-void": "warn",
"no-await-in-loop": "warn",
"complexity": "warn",
"no-warning-comments": "warn"
}
}