-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
77 lines (73 loc) · 2.5 KB
/
.eslintrc.js
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! 💖
*/
module.exports = {
"ignorePatterns": ["**/*Test.ts", "**/*.spec.ts"],
"env": {
"es6": true,
"node": true,
"es2021": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier",
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"ecmaVersion": "es2022"
},
"plugins": [
"eslint-plugin-jsdoc",
"@typescript-eslint",
"import",
],
"root": true,
"rules": {
"indent": "off",
"eol-last": ["error", 'always'],
"max-classes-per-file": "off",
"import/no-unresolved": ['error'],
"no-multiple-empty-lines": ["error", {max: 1, maxEOF: 1, maxBOF: 0}],
"@typescript-eslint/semi": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/explicit-member-accessibility": ['error'],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-object-literal-type-assertion": "off",
"@typescript-eslint/indent": [
"error",
4,
{"flatTernaryExpressions": true, "SwitchCase": 1},
],
"import/export": "off",
"key-spacing": [
2,
{
afterColon: true,
align: "value",
beforeColon: false,
mode: "minimum",
},
],
"comma-dangle": [2, "always-multiline"],
"import/named": "off",
"import/order": [2, {"newlines-between": "always"}],
}
};