generated from JoshMerlino/ts-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
135 lines (128 loc) · 3.16 KB
/
.eslintrc.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
env:
browser: true
node: true
es2020: true
commonjs: true
shared-node-browser: true
plugins:
- "@typescript-eslint"
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 12
sourceType: module
extends:
- plugin:@typescript-eslint/recommended
rules:
for-direction: error
getter-return: error
no-compare-neg-zero: error
no-cond-assign: error
no-constant-condition: warn
no-control-regex: error
no-debugger: warn
no-dupe-args: error
no-dupe-else-if: error
no-dupe-keys: error
no-duplicate-case: error
no-empty: warn
no-extra-boolean-cast: error
no-extra-semi: warn
no-func-assign: error
no-import-assign: error
no-invalid-regexp: error
no-irregular-whitespace: warn
no-regex-spaces: warn
no-setter-return: error
no-unexpected-multiline: error
no-unreachable: warn
no-unsafe-finally: warn
no-unsafe-negation: error
use-isnan: error
valid-typeof: error
block-scoped-var: warn
default-case: warn
default-param-last: error
dot-location: [warn, property]
dot-notation: warn
eqeqeq: error
max-classes-per-file: error
no-alert: warn
no-constructor-return: error
no-else-return: warn
no-empty-pattern: warn
no-eq-null: error
no-eval: warn
no-extra-bind: error
no-extra-label: warn
no-implied-eval: warn
no-invalid-this: error
no-iterator: error
no-lone-blocks: warn
no-loop-func: error
no-multi-spaces: warn
no-multi-str: warn
no-new: error
no-new-func: error
no-new-wrappers: error
no-proto: error
no-redeclare: error
no-restricted-properties: error
no-script-url: error
no-self-assign: warn
no-self-compare: warn
no-sequences: error
no-throw-literal: error
no-unmodified-loop-condition: error
no-unused-expressions: warn
no-useless-call: warn
no-useless-catch: warn
no-useless-concat: warn
no-useless-escape: warn
no-warning-comments: warn
no-with: warn
wrap-iife: error
yoda: warn
strict: error
array-bracket-spacing: [warn, always]
capitalized-comments: warn
comma-dangle: warn
comma-spacing: warn
comma-style: warn
computed-property-spacing: warn
consistent-this: warn
eol-last: warn
func-call-spacing: warn
indent: [warn, tab]
jsx-quotes: [warn, prefer-double]
key-spacing: warn
keyword-spacing: warn
line-comment-position: [warn, { position: above }]
linebreak-style: [warn, unix]
lines-around-comment: warn
lines-between-class-members: warn
max-statements-per-line: warn
multiline-ternary: [warn, never]
new-parens: [warn, never]
newline-per-chained-call: warn
no-array-constructor: warn
no-inline-comments: warn
no-lonely-if: warn
no-multi-assign: warn
no-multiple-empty-lines: [warn, { max: 1, maxEOF: 0 }]
no-new-object: warn
no-trailing-spaces: warn
no-unneeded-ternary: warn
no-whitespace-before-property: warn
one-var-declaration-per-line: warn
operator-assignment: warn
prefer-object-spread: warn
quotes: [warn, double]
semi: [warn, always]
space-unary-ops: warn
"@typescript-eslint/no-unused-vars": off
"@typescript-eslint/no-non-null-assertion": off
"@typescript-eslint/no-empty-function": off
overrides:
- files: "*.cjs"
rules:
"@typescript-eslint/no-var-requires": off