-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.09 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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier"],
overrides: [
{
files: ["*.ts"],
extends: ["@programic/eslint-config-typescript", "prettier"],
parserOptions: {
project: ["./tsconfig.json"],
},
},
],
rules: {
"max-classes-per-file": "warn",
"padding-line-between-statements": "warn",
"spaced-comment": "warn",
"lines-between-class-members": "warn",
"class-methods-use-this": "warn",
"no-bitwise": "off",
"no-param-reassign": "off",
"id-length": "off",
"prefer-const": "error",
"no-const-assign": "error",
quotes: "off",
"@typescript-eslint/quotes": [
"warn",
"double",
{
allowTemplateLiterals: true,
},
],
"@typescript-eslint/comma-dangle": ["warn", "only-multiline"],
"prettier/prettier": [
"off",
{ "comma-dangle": "off", singleQuote: false, parser: "flow" },
],
"import/prefer-default-export": "off", // Allow single Named-export
"unicorn/prevent-abbreviations": "warn",
},
};