-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (40 loc) · 1.32 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
// eslint-disable-next-line unicorn/prefer-module
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"./node_modules/gts/",
"plugin:unicorn/recommended",
],
env: {
es6: true,
jest: true,
},
parserOptions: {
ecmaVersion: 2019,
sourceType: "module",
},
plugins: ["eslint-plugin-tsdoc", "unicorn", "simple-import-sort", "import"],
rules: {
indent: ["warn", 4, { SwitchCase: 1 }],
quotes: ["warn", "double"],
radix: "error",
complexity: ["error", 3],
"node/no-unpublished-import": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-unused-vars": [2, { args: "none" }],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/indent": "off",
"tsdoc/syntax": "error",
"unicorn/filename-case": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"max-len": "off",
},
};