@clipboard-health/eslint-config 2.4.14 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/src/deprecated.d.ts +211 -0
- package/src/deprecated.d.ts.map +1 -0
- package/src/deprecated.js +325 -0
- package/src/deprecated.js.map +1 -0
- package/src/index.d.ts +35 -197
- package/src/index.d.ts.map +1 -1
- package/src/index.js +77 -304
- package/src/index.js.map +1 -1
- package/src/{xo-react.d.ts → react.d.ts} +1 -1
- package/src/react.d.ts.map +1 -0
- package/src/{xo-react.js → react.js} +2 -2
- package/src/react.js.map +1 -0
- package/src/xo-react.d.ts.map +0 -1
- package/src/xo-react.js.map +0 -1
- package/src/xo.d.ts +0 -53
- package/src/xo.d.ts.map +0 -1
- package/src/xo.js +0 -91
- package/src/xo.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [3.0.1](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-3.0.0...eslint-config-3.0.1) (2023-05-22)
|
|
6
|
+
|
|
7
|
+
## [3.0.0](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.14...eslint-config-3.0.0) (2023-05-20)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* Default eslint-config is strict, xo-react is now react.
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* promote strict ESLint config to default, rename xo-react to react ([2c23dc9](https://github.com/ClipboardHealth/cbh-core/commit/2c23dc9b093fe3946a8be97813e1b9754ea70ade))
|
|
17
|
+
|
|
5
18
|
## [2.4.14](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.13...eslint-config-2.4.14) (2023-05-19)
|
|
6
19
|
|
|
7
20
|
## [2.4.13](https://github.com/ClipboardHealth/cbh-core/compare/eslint-config-2.4.12...eslint-config-2.4.13) (2023-05-18)
|
package/package.json
CHANGED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export declare const parser: string;
|
|
2
|
+
export declare namespace parserOptions {
|
|
3
|
+
const project: string[];
|
|
4
|
+
const tsconfigRootDir: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const plugins: string[];
|
|
7
|
+
declare const _extends: string[];
|
|
8
|
+
export { _extends as extends };
|
|
9
|
+
export declare const root: boolean;
|
|
10
|
+
export declare namespace env {
|
|
11
|
+
const es2022: boolean;
|
|
12
|
+
const node: boolean;
|
|
13
|
+
const jest: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const ignorePatterns: string[];
|
|
16
|
+
export declare const rules: {
|
|
17
|
+
"no-only-tests/no-only-tests": string;
|
|
18
|
+
"prefer-const": (string | {
|
|
19
|
+
destructuring: string;
|
|
20
|
+
})[];
|
|
21
|
+
"func-style": (string | {
|
|
22
|
+
allowArrowFunctions: boolean;
|
|
23
|
+
})[];
|
|
24
|
+
"sort-imports": string;
|
|
25
|
+
"simple-import-sort/imports": string;
|
|
26
|
+
"simple-import-sort/exports": string;
|
|
27
|
+
"@typescript-eslint/consistent-indexed-object-style": string[];
|
|
28
|
+
"@typescript-eslint/consistent-type-assertions": (string | {
|
|
29
|
+
assertionStyle: string;
|
|
30
|
+
})[];
|
|
31
|
+
"@typescript-eslint/explicit-module-boundary-types": (string | {
|
|
32
|
+
allowArgumentsExplicitlyTypedAsAny: boolean;
|
|
33
|
+
})[];
|
|
34
|
+
"@typescript-eslint/no-invalid-void-type": string;
|
|
35
|
+
"@typescript-eslint/no-explicit-any": string;
|
|
36
|
+
"@typescript-eslint/no-floating-promises": string;
|
|
37
|
+
"@typescript-eslint/no-meaningless-void-operator": string;
|
|
38
|
+
"@typescript-eslint/no-require-imports": string;
|
|
39
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": string;
|
|
40
|
+
"@typescript-eslint/no-var-requires": string;
|
|
41
|
+
"@typescript-eslint/prefer-enum-initializers": string;
|
|
42
|
+
"@typescript-eslint/prefer-for-of": string;
|
|
43
|
+
"@typescript-eslint/prefer-includes": string;
|
|
44
|
+
"@typescript-eslint/prefer-literal-enum-member": string;
|
|
45
|
+
"@typescript-eslint/prefer-nullish-coalescing": string;
|
|
46
|
+
"@typescript-eslint/prefer-optional-chain": string;
|
|
47
|
+
"@typescript-eslint/prefer-return-this-type": string;
|
|
48
|
+
"@typescript-eslint/prefer-string-starts-ends-with": string;
|
|
49
|
+
"@typescript-eslint/prefer-ts-expect-error": string;
|
|
50
|
+
"@typescript-eslint/switch-exhaustiveness-check": string;
|
|
51
|
+
"@typescript-eslint/unified-signatures": string;
|
|
52
|
+
"@typescript-eslint/no-throw-literal": string;
|
|
53
|
+
"@typescript-eslint/no-unused-vars": (string | {
|
|
54
|
+
ignoreRestSiblings: boolean;
|
|
55
|
+
varsIgnorePattern: string;
|
|
56
|
+
args: string;
|
|
57
|
+
argsIgnorePattern: string;
|
|
58
|
+
})[];
|
|
59
|
+
"array-callback-return": (string | {
|
|
60
|
+
allowImplicit: boolean;
|
|
61
|
+
checkForEach: boolean;
|
|
62
|
+
})[];
|
|
63
|
+
"no-var": string;
|
|
64
|
+
"@typescript-eslint/naming-convention": (string | {
|
|
65
|
+
selector: string;
|
|
66
|
+
format: string[];
|
|
67
|
+
modifiers?: never;
|
|
68
|
+
leadingUnderscore?: never;
|
|
69
|
+
} | {
|
|
70
|
+
selector: string[];
|
|
71
|
+
modifiers: string[];
|
|
72
|
+
format: null;
|
|
73
|
+
leadingUnderscore?: never;
|
|
74
|
+
} | {
|
|
75
|
+
selector: string;
|
|
76
|
+
modifiers: string[];
|
|
77
|
+
format: string[];
|
|
78
|
+
leadingUnderscore?: never;
|
|
79
|
+
} | {
|
|
80
|
+
selector: string[];
|
|
81
|
+
format: string[];
|
|
82
|
+
leadingUnderscore: string;
|
|
83
|
+
modifiers?: never;
|
|
84
|
+
} | {
|
|
85
|
+
selector: string[];
|
|
86
|
+
format: string[];
|
|
87
|
+
modifiers?: never;
|
|
88
|
+
leadingUnderscore?: never;
|
|
89
|
+
} | {
|
|
90
|
+
selector: string;
|
|
91
|
+
format: null;
|
|
92
|
+
modifiers?: never;
|
|
93
|
+
leadingUnderscore?: never;
|
|
94
|
+
} | {
|
|
95
|
+
selector: string[];
|
|
96
|
+
modifiers: string[];
|
|
97
|
+
leadingUnderscore: string;
|
|
98
|
+
format: null;
|
|
99
|
+
})[];
|
|
100
|
+
"consistent-return": string;
|
|
101
|
+
"default-case-last": string;
|
|
102
|
+
"@typescript-eslint/default-param-last": string;
|
|
103
|
+
"@typescript-eslint/dot-notation": (string | {
|
|
104
|
+
allowKeywords: boolean;
|
|
105
|
+
})[];
|
|
106
|
+
eqeqeq: string[];
|
|
107
|
+
"grouped-accessor-pairs": string;
|
|
108
|
+
"@typescript-eslint/lines-between-class-members": (string | {
|
|
109
|
+
exceptAfterSingleLine: boolean;
|
|
110
|
+
})[];
|
|
111
|
+
"new-cap": (string | {
|
|
112
|
+
newIsCap: boolean;
|
|
113
|
+
capIsNew: boolean;
|
|
114
|
+
})[];
|
|
115
|
+
"no-alert": string;
|
|
116
|
+
"no-console": string;
|
|
117
|
+
"no-bitwise": string;
|
|
118
|
+
"no-constructor-return": string;
|
|
119
|
+
"no-eval": string;
|
|
120
|
+
"@typescript-eslint/no-implied-eval": string;
|
|
121
|
+
"no-lone-blocks": string;
|
|
122
|
+
"@typescript-eslint/no-loop-func": string;
|
|
123
|
+
"no-multi-assign": string;
|
|
124
|
+
"no-multi-str": string;
|
|
125
|
+
"no-new": string;
|
|
126
|
+
"no-new-func": string;
|
|
127
|
+
"no-new-object": string;
|
|
128
|
+
"no-new-require": string;
|
|
129
|
+
"no-new-wrappers": string;
|
|
130
|
+
"no-octal-escape": string;
|
|
131
|
+
"no-param-reassign": (string | {
|
|
132
|
+
props: boolean;
|
|
133
|
+
})[];
|
|
134
|
+
"no-restricted-globals": (string | {
|
|
135
|
+
name: string;
|
|
136
|
+
message: string;
|
|
137
|
+
})[];
|
|
138
|
+
"no-proto": string;
|
|
139
|
+
"no-extend-native": string;
|
|
140
|
+
"no-extra-label": string;
|
|
141
|
+
"no-iterator": string;
|
|
142
|
+
"no-label-var": string;
|
|
143
|
+
"no-script-url": string;
|
|
144
|
+
"no-sequences": string;
|
|
145
|
+
"no-restricted-properties": (string | {
|
|
146
|
+
object: string;
|
|
147
|
+
property: string;
|
|
148
|
+
message: string;
|
|
149
|
+
} | {
|
|
150
|
+
property: string;
|
|
151
|
+
message: string;
|
|
152
|
+
object?: never;
|
|
153
|
+
})[];
|
|
154
|
+
"no-self-compare": string;
|
|
155
|
+
"@typescript-eslint/no-shadow": string[];
|
|
156
|
+
"no-template-curly-in-string": string;
|
|
157
|
+
"no-undef-init": string;
|
|
158
|
+
"no-unneeded-ternary": (string | {
|
|
159
|
+
defaultAssignment: boolean;
|
|
160
|
+
})[];
|
|
161
|
+
"no-unreachable-loop": string[];
|
|
162
|
+
"@typescript-eslint/no-unused-expressions": string[];
|
|
163
|
+
"no-useless-computed-key": string;
|
|
164
|
+
"no-useless-concat": string;
|
|
165
|
+
"@typescript-eslint/no-useless-constructor": string;
|
|
166
|
+
"no-useless-rename": string[];
|
|
167
|
+
"no-useless-return": string;
|
|
168
|
+
"no-void": string;
|
|
169
|
+
"object-shorthand": (string | {
|
|
170
|
+
avoidQuotes: boolean;
|
|
171
|
+
})[];
|
|
172
|
+
"operator-assignment": string[];
|
|
173
|
+
"prefer-arrow-callback": string[];
|
|
174
|
+
"prefer-destructuring": (string | {
|
|
175
|
+
VariableDeclarator: {
|
|
176
|
+
array: boolean;
|
|
177
|
+
object: boolean;
|
|
178
|
+
};
|
|
179
|
+
})[];
|
|
180
|
+
"prefer-exponentiation-operator": string;
|
|
181
|
+
"prefer-numeric-literals": string;
|
|
182
|
+
"prefer-object-spread": string;
|
|
183
|
+
"prefer-promise-reject-errors": (string | {
|
|
184
|
+
allowEmptyReject: boolean;
|
|
185
|
+
})[];
|
|
186
|
+
"prefer-regex-literals": (string | {
|
|
187
|
+
disallowRedundantWrapping: boolean;
|
|
188
|
+
})[];
|
|
189
|
+
"prefer-template": string;
|
|
190
|
+
"spaced-comment": (string | {
|
|
191
|
+
line: {
|
|
192
|
+
exceptions: string[];
|
|
193
|
+
markers: string[];
|
|
194
|
+
};
|
|
195
|
+
block: {
|
|
196
|
+
exceptions: string[];
|
|
197
|
+
markers: string[];
|
|
198
|
+
balanced: boolean;
|
|
199
|
+
};
|
|
200
|
+
})[];
|
|
201
|
+
strict: string[];
|
|
202
|
+
"symbol-description": string;
|
|
203
|
+
yoda: string[];
|
|
204
|
+
};
|
|
205
|
+
export declare const overrides: {
|
|
206
|
+
files: string[];
|
|
207
|
+
rules: {
|
|
208
|
+
"@typescript-eslint/explicit-module-boundary-types": string;
|
|
209
|
+
};
|
|
210
|
+
}[];
|
|
211
|
+
//# sourceMappingURL=deprecated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../../../../packages/eslint-config/src/deprecated.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const MESSAGES = {
|
|
3
|
+
isFinite: "Please use Number.isFinite instead.",
|
|
4
|
+
isNaN: "Please use Number.isNaN instead.",
|
|
5
|
+
};
|
|
6
|
+
module.exports = {
|
|
7
|
+
parser: "@typescript-eslint/parser",
|
|
8
|
+
parserOptions: {
|
|
9
|
+
project: ["tsconfig.json"],
|
|
10
|
+
tsconfigRootDir: __dirname,
|
|
11
|
+
},
|
|
12
|
+
plugins: ["@typescript-eslint/eslint-plugin", "no-only-tests", "simple-import-sort"],
|
|
13
|
+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
|
|
14
|
+
root: true,
|
|
15
|
+
env: {
|
|
16
|
+
es2022: true,
|
|
17
|
+
node: true,
|
|
18
|
+
jest: true,
|
|
19
|
+
},
|
|
20
|
+
ignorePatterns: [".eslintrc.js"],
|
|
21
|
+
rules: {
|
|
22
|
+
"no-only-tests/no-only-tests": "error",
|
|
23
|
+
"prefer-const": [
|
|
24
|
+
"warn",
|
|
25
|
+
{
|
|
26
|
+
destructuring: "all",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
"func-style": [
|
|
30
|
+
"warn",
|
|
31
|
+
"declaration",
|
|
32
|
+
{
|
|
33
|
+
allowArrowFunctions: true,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
"sort-imports": "off",
|
|
37
|
+
"simple-import-sort/imports": "warn",
|
|
38
|
+
"simple-import-sort/exports": "warn",
|
|
39
|
+
"@typescript-eslint/consistent-indexed-object-style": ["warn", "record"],
|
|
40
|
+
"@typescript-eslint/consistent-type-assertions": [
|
|
41
|
+
"warn",
|
|
42
|
+
{
|
|
43
|
+
assertionStyle: "never",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
// Enabled by default - you can and should override this in overrides below
|
|
47
|
+
"@typescript-eslint/explicit-module-boundary-types": [
|
|
48
|
+
"warn",
|
|
49
|
+
// We already have 'no-explicit-any' on - no need to enforce it again
|
|
50
|
+
{ allowArgumentsExplicitlyTypedAsAny: true },
|
|
51
|
+
],
|
|
52
|
+
"@typescript-eslint/no-invalid-void-type": "warn",
|
|
53
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
54
|
+
"@typescript-eslint/no-floating-promises": "warn",
|
|
55
|
+
"@typescript-eslint/no-meaningless-void-operator": "warn",
|
|
56
|
+
"@typescript-eslint/no-require-imports": "warn",
|
|
57
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "warn",
|
|
58
|
+
"@typescript-eslint/no-var-requires": "off",
|
|
59
|
+
"@typescript-eslint/prefer-enum-initializers": "warn",
|
|
60
|
+
"@typescript-eslint/prefer-for-of": "warn",
|
|
61
|
+
"@typescript-eslint/prefer-includes": "warn",
|
|
62
|
+
"@typescript-eslint/prefer-literal-enum-member": "warn",
|
|
63
|
+
"@typescript-eslint/prefer-nullish-coalescing": "warn",
|
|
64
|
+
"@typescript-eslint/prefer-optional-chain": "warn",
|
|
65
|
+
"@typescript-eslint/prefer-return-this-type": "error",
|
|
66
|
+
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
|
|
67
|
+
"@typescript-eslint/prefer-ts-expect-error": "warn",
|
|
68
|
+
"@typescript-eslint/switch-exhaustiveness-check": "warn",
|
|
69
|
+
"@typescript-eslint/unified-signatures": "warn",
|
|
70
|
+
"@typescript-eslint/no-throw-literal": "warn",
|
|
71
|
+
"@typescript-eslint/no-unused-vars": [
|
|
72
|
+
"warn",
|
|
73
|
+
{
|
|
74
|
+
ignoreRestSiblings: true,
|
|
75
|
+
varsIgnorePattern: "(^_)",
|
|
76
|
+
args: "all",
|
|
77
|
+
argsIgnorePattern: "(^_)",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
"array-callback-return": [
|
|
81
|
+
"error",
|
|
82
|
+
{
|
|
83
|
+
allowImplicit: true,
|
|
84
|
+
checkForEach: false,
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
"no-var": "warn",
|
|
88
|
+
"@typescript-eslint/naming-convention": [
|
|
89
|
+
"warn",
|
|
90
|
+
{
|
|
91
|
+
selector: "default",
|
|
92
|
+
format: ["camelCase"],
|
|
93
|
+
},
|
|
94
|
+
// Ignore destructured variables
|
|
95
|
+
{
|
|
96
|
+
selector: ["variable", "parameter"],
|
|
97
|
+
modifiers: ["destructured"],
|
|
98
|
+
format: null,
|
|
99
|
+
},
|
|
100
|
+
// Additional cases for constants, enums
|
|
101
|
+
{
|
|
102
|
+
selector: "variable",
|
|
103
|
+
modifiers: ["const"],
|
|
104
|
+
format: ["camelCase", "UPPER_CASE", "PascalCase"],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
selector: "enum",
|
|
108
|
+
format: ["PascalCase", "UPPER_CASE"],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
selector: ["enumMember", "typeProperty"],
|
|
112
|
+
format: ["camelCase", "PascalCase", "UPPER_CASE", "snake_case"],
|
|
113
|
+
//
|
|
114
|
+
leadingUnderscore: "allow",
|
|
115
|
+
},
|
|
116
|
+
// Classes/interfaces/types
|
|
117
|
+
{
|
|
118
|
+
selector: ["class", "interface", "typeAlias", "typeParameter"],
|
|
119
|
+
format: ["PascalCase"],
|
|
120
|
+
},
|
|
121
|
+
// Ignore object literal props, e.g. in prisma calls
|
|
122
|
+
{
|
|
123
|
+
selector: "objectLiteralProperty",
|
|
124
|
+
format: null,
|
|
125
|
+
},
|
|
126
|
+
// Support unused variables
|
|
127
|
+
{
|
|
128
|
+
selector: ["variable", "parameter"],
|
|
129
|
+
modifiers: ["unused"],
|
|
130
|
+
leadingUnderscore: "allow",
|
|
131
|
+
format: null,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
"consistent-return": "warn",
|
|
135
|
+
"default-case-last": "warn",
|
|
136
|
+
"@typescript-eslint/default-param-last": "error",
|
|
137
|
+
"@typescript-eslint/dot-notation": [
|
|
138
|
+
"warn",
|
|
139
|
+
{
|
|
140
|
+
allowKeywords: true,
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
eqeqeq: ["error", "always"],
|
|
144
|
+
"grouped-accessor-pairs": "warn",
|
|
145
|
+
"@typescript-eslint/lines-between-class-members": [
|
|
146
|
+
"warn",
|
|
147
|
+
"always",
|
|
148
|
+
{
|
|
149
|
+
exceptAfterSingleLine: true,
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
"new-cap": [
|
|
153
|
+
"warn",
|
|
154
|
+
{
|
|
155
|
+
newIsCap: true,
|
|
156
|
+
capIsNew: false,
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
"no-alert": "warn",
|
|
160
|
+
"no-console": "warn",
|
|
161
|
+
"no-bitwise": "warn",
|
|
162
|
+
"no-constructor-return": "error",
|
|
163
|
+
"no-eval": "error",
|
|
164
|
+
"@typescript-eslint/no-implied-eval": "error",
|
|
165
|
+
"no-lone-blocks": "warn",
|
|
166
|
+
"@typescript-eslint/no-loop-func": "warn",
|
|
167
|
+
"no-multi-assign": "warn",
|
|
168
|
+
"no-multi-str": "warn",
|
|
169
|
+
"no-new": "warn",
|
|
170
|
+
"no-new-func": "error",
|
|
171
|
+
"no-new-object": "error",
|
|
172
|
+
"no-new-require": "error",
|
|
173
|
+
"no-new-wrappers": "error",
|
|
174
|
+
"no-octal-escape": "error",
|
|
175
|
+
"no-param-reassign": [
|
|
176
|
+
"warn",
|
|
177
|
+
{
|
|
178
|
+
props: false,
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
"no-restricted-globals": [
|
|
182
|
+
"warn",
|
|
183
|
+
{
|
|
184
|
+
name: "isFinite",
|
|
185
|
+
message: "Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "isNaN",
|
|
189
|
+
message: "Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
"no-proto": "warn",
|
|
193
|
+
"no-extend-native": "warn",
|
|
194
|
+
"no-extra-label": "warn",
|
|
195
|
+
"no-iterator": "warn",
|
|
196
|
+
"no-label-var": "warn",
|
|
197
|
+
"no-script-url": "warn",
|
|
198
|
+
"no-sequences": "warn",
|
|
199
|
+
"no-restricted-properties": [
|
|
200
|
+
"warn",
|
|
201
|
+
{
|
|
202
|
+
object: "global",
|
|
203
|
+
property: "isFinite",
|
|
204
|
+
message: MESSAGES.isFinite,
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
object: "self",
|
|
208
|
+
property: "isFinite",
|
|
209
|
+
message: MESSAGES.isFinite,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
object: "window",
|
|
213
|
+
property: "isFinite",
|
|
214
|
+
message: MESSAGES.isFinite,
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
object: "global",
|
|
218
|
+
property: "isNaN",
|
|
219
|
+
message: MESSAGES.isNaN,
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
object: "self",
|
|
223
|
+
property: "isNaN",
|
|
224
|
+
message: MESSAGES.isNaN,
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
object: "window",
|
|
228
|
+
property: "isNaN",
|
|
229
|
+
message: MESSAGES.isNaN,
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
property: "__defineGetter__",
|
|
233
|
+
message: "Please use Object.defineProperty instead.",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
property: "__defineSetter__",
|
|
237
|
+
message: "Please use Object.defineProperty instead.",
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
"no-self-compare": "error",
|
|
241
|
+
"@typescript-eslint/no-shadow": ["warn"],
|
|
242
|
+
"no-template-curly-in-string": "error",
|
|
243
|
+
"no-undef-init": "warn",
|
|
244
|
+
"no-unneeded-ternary": [
|
|
245
|
+
"warn",
|
|
246
|
+
{
|
|
247
|
+
defaultAssignment: false,
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
"no-unreachable-loop": ["warn"],
|
|
251
|
+
"@typescript-eslint/no-unused-expressions": ["warn"],
|
|
252
|
+
"no-useless-computed-key": "warn",
|
|
253
|
+
"no-useless-concat": "warn",
|
|
254
|
+
"@typescript-eslint/no-useless-constructor": "warn",
|
|
255
|
+
"no-useless-rename": ["warn"],
|
|
256
|
+
"no-useless-return": "warn",
|
|
257
|
+
"no-void": "off",
|
|
258
|
+
"object-shorthand": [
|
|
259
|
+
"warn",
|
|
260
|
+
"always",
|
|
261
|
+
{
|
|
262
|
+
avoidQuotes: true,
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
"operator-assignment": ["warn", "always"],
|
|
266
|
+
"prefer-arrow-callback": ["warn"],
|
|
267
|
+
"prefer-destructuring": [
|
|
268
|
+
"warn",
|
|
269
|
+
{
|
|
270
|
+
VariableDeclarator: {
|
|
271
|
+
array: false,
|
|
272
|
+
object: true,
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
"prefer-exponentiation-operator": "warn",
|
|
277
|
+
"prefer-numeric-literals": "warn",
|
|
278
|
+
"prefer-object-spread": "error",
|
|
279
|
+
"prefer-promise-reject-errors": [
|
|
280
|
+
"warn",
|
|
281
|
+
{
|
|
282
|
+
allowEmptyReject: true,
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
"prefer-regex-literals": [
|
|
286
|
+
"warn",
|
|
287
|
+
{
|
|
288
|
+
disallowRedundantWrapping: true,
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
"prefer-template": "warn",
|
|
292
|
+
"spaced-comment": [
|
|
293
|
+
"warn",
|
|
294
|
+
"always",
|
|
295
|
+
{
|
|
296
|
+
line: {
|
|
297
|
+
exceptions: ["-", "+"],
|
|
298
|
+
markers: ["=", "!", "/"],
|
|
299
|
+
},
|
|
300
|
+
block: {
|
|
301
|
+
exceptions: ["-", "+"],
|
|
302
|
+
markers: ["=", "!", ":", "::"],
|
|
303
|
+
balanced: true,
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
strict: ["warn", "never"],
|
|
308
|
+
"symbol-description": "warn",
|
|
309
|
+
yoda: ["warn"],
|
|
310
|
+
},
|
|
311
|
+
overrides: [
|
|
312
|
+
{
|
|
313
|
+
/*
|
|
314
|
+
* Prisma calls with relations can result in complex return types, which
|
|
315
|
+
* may be cumbersome to define explicitly. This override allows type
|
|
316
|
+
* inference in repository files that interact with Prisma.
|
|
317
|
+
*/
|
|
318
|
+
files: ["*.repository.ts"],
|
|
319
|
+
rules: {
|
|
320
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
};
|
|
325
|
+
//# sourceMappingURL=deprecated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecated.js","sourceRoot":"","sources":["../../../../packages/eslint-config/src/deprecated.js"],"names":[],"mappings":";AAAA,MAAM,QAAQ,GAAG;IACf,QAAQ,EAAE,qCAAqC;IAC/C,KAAK,EAAE,kCAAkC;CAC1C,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG;IACf,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,eAAe,EAAE,SAAS;KAC3B;IACD,OAAO,EAAE,CAAC,kCAAkC,EAAE,eAAe,EAAE,oBAAoB,CAAC;IACpF,OAAO,EAAE,CAAC,oBAAoB,EAAE,uCAAuC,EAAE,UAAU,CAAC;IACpF,IAAI,EAAE,IAAI;IACV,GAAG,EAAE;QACH,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;KACX;IACD,cAAc,EAAE,CAAC,cAAc,CAAC;IAChC,KAAK,EAAE;QACL,6BAA6B,EAAE,OAAO;QACtC,cAAc,EAAE;YACd,MAAM;YACN;gBACE,aAAa,EAAE,KAAK;aACrB;SACF;QACD,YAAY,EAAE;YACZ,MAAM;YACN,aAAa;YACb;gBACE,mBAAmB,EAAE,IAAI;aAC1B;SACF;QACD,cAAc,EAAE,KAAK;QACrB,4BAA4B,EAAE,MAAM;QACpC,4BAA4B,EAAE,MAAM;QACpC,oDAAoD,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;QACxE,+CAA+C,EAAE;YAC/C,MAAM;YACN;gBACE,cAAc,EAAE,OAAO;aACxB;SACF;QACD,2EAA2E;QAC3E,mDAAmD,EAAE;YACnD,MAAM;YACN,qEAAqE;YACrE,EAAE,kCAAkC,EAAE,IAAI,EAAE;SAC7C;QACD,yCAAyC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