generated from samhuk/ts-npm-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
78 lines (78 loc) · 1.88 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
78
{
"env": {
"browser": false,
"node": true,
"es2021": true
},
"ignorePatterns": [
"node_modules/**/*",
"build-*/**/*",
"lib/**/*",
"package.lock.json",
"LICENSE",
"*.yaml",
"*.go",
"*.sh",
"*.md",
"*.sql",
"*.json",
"*.scss",
"*.html",
"*.ico",
"*.ttf",
"*.woff2",
"*.txt",
"*.env",
"*.md",
"*.bat"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 14,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".ts", ".js"]
}
}
},
"rules": {
"quotes": ["error", "single"],
"quote-props": ["error", "as-needed"],
"semi": [2, "never"],
"prefer-destructuring": "off",
"import/extensions": "off",
"radix": "off",
"object-curly-newline": "off",
"comma-dangle": ["error", "always-multiline"],
"nonblock-statement-body-position": ["error", "any"],
"curly": ["error", "multi-or-nest", "consistent"],
"max-len": ["error", { "code": 150, "ignoreTemplateLiterals": true }],
"@typescript-eslint/no-unused-vars": "warn",
"no-undef": "off",
"no-unused-vars": "off",
"arrow-parens": [2, "as-needed"],
"no-return-assign": [0],
"brace-style": [2, "stroustrup"],
"no-underscore-dangle": [0],
"no-nested-ternary": [0],
"import/prefer-default-export": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"class-methods-use-this": "off",
"no-useless-constructor": "off",
"no-empty-function": "off",
"lines-between-class-members": "off",
"no-param-reassign": "warn",
"object-shorthand": ["error", "properties"],
"space-before-function-paren": "off",
"eol-last": "error"
}
}