@spscommerce/eslint-config-typescript 9.0.0 → 9.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/GUIDE.md +384 -5
- package/lib/rules/bestPractices.d.ts +2 -2
- package/lib/rules/bestPractices.js.map +1 -1
- package/lib/rules/es6.d.ts +2 -2
- package/lib/rules/es6.js.map +1 -1
- package/lib/rules/possibleErrors.d.ts +2 -2
- package/lib/rules/possibleErrors.js.map +1 -1
- package/lib/rules/strictMode.d.ts +2 -2
- package/lib/rules/strictMode.js.map +1 -1
- package/lib/rules/stylisticIssues.js.map +1 -1
- package/lib/rules/variables.d.ts +2 -2
- package/lib/rules/variables.js.map +1 -1
- package/lib-esm/flat.d.ts +19 -0
- package/lib-esm/flat.mjs +2336 -0
- package/lib-esm/rules/bestPractices.d.ts +2 -0
- package/lib-esm/rules/es6.d.ts +2 -0
- package/lib-esm/rules/imports/helpfulWarnings.d.ts +2 -0
- package/lib-esm/rules/imports/index.d.ts +4 -0
- package/lib-esm/rules/imports/moduleSystems.d.ts +2 -0
- package/lib-esm/rules/imports/staticAnalysis.d.ts +2 -0
- package/lib-esm/rules/imports/styleGuide.d.ts +2 -0
- package/lib-esm/rules/possibleErrors.d.ts +2 -0
- package/lib-esm/rules/strictMode.d.ts +2 -0
- package/lib-esm/rules/stylisticIssues.d.ts +2 -0
- package/lib-esm/rules/typescript.d.ts +2 -0
- package/lib-esm/rules/variables.d.ts +2 -0
- package/package.json +27 -8
- package/tsconfig.json +0 -15
package/GUIDE.md
CHANGED
|
@@ -1,6 +1,385 @@
|
|
|
1
1
|
# @spscommerce/eslint-config-typescript
|
|
2
2
|
|
|
3
|
-
> An ESLint
|
|
3
|
+
> An ESLint config that attempts to enforce SPS Commerce's typescript style guide (see below for the style guide contents) which contains both the legacy / non-flat config and a flat config.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
### Using Flat Config (ESLint 8.57.1+)
|
|
8
|
+
|
|
9
|
+
This package provides a flat config export for use with ESLint's new configuration format. The flat config is available alongside the legacy format, allowing you to choose based on your project's needs.
|
|
10
|
+
|
|
11
|
+
#### Installation
|
|
12
|
+
|
|
13
|
+
Install the package and its peer dependencies:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add -D @spscommerce/eslint-config-typescript
|
|
17
|
+
pnpm add -D eslint@^8.57.1 typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin typescript-eslint eslint-plugin-import eslint-import-resolver-typescript @stylistic/eslint-plugin
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
#### Basic Setup
|
|
21
|
+
|
|
22
|
+
Create an `eslint.config.js` file in your project root:
|
|
23
|
+
|
|
24
|
+
```javascript
|
|
25
|
+
import spsConfig from '@spscommerce/eslint-config-typescript/flat';
|
|
26
|
+
|
|
27
|
+
export default [
|
|
28
|
+
{
|
|
29
|
+
ignores: [
|
|
30
|
+
'**/node_modules/**',
|
|
31
|
+
'**/dist/**',
|
|
32
|
+
'**/build/**',
|
|
33
|
+
'**/coverage/**',
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
...spsConfig,
|
|
37
|
+
{
|
|
38
|
+
languageOptions: {
|
|
39
|
+
parserOptions: {
|
|
40
|
+
project: './tsconfig.json',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Important: TypeScript Project Configuration
|
|
48
|
+
|
|
49
|
+
**Type-aware linting rules require TypeScript project configuration.** You must add this to your config:
|
|
50
|
+
|
|
51
|
+
```javascript
|
|
52
|
+
import spsConfig from '@spscommerce/eslint-config-typescript/flat';
|
|
53
|
+
|
|
54
|
+
export default [
|
|
55
|
+
...spsConfig,
|
|
56
|
+
{
|
|
57
|
+
languageOptions: {
|
|
58
|
+
parserOptions: {
|
|
59
|
+
// Option 1: Specify path to your tsconfig (most common)
|
|
60
|
+
project: './tsconfig.json',
|
|
61
|
+
|
|
62
|
+
// Option 2: Auto-detect (finds nearest tsconfig for each file)
|
|
63
|
+
// project: true,
|
|
64
|
+
|
|
65
|
+
// Option 3: Multiple tsconfig files (monorepos)
|
|
66
|
+
// project: ['./tsconfig.json', './packages/*/tsconfig.json'],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Without this configuration, you may see errors like "Parsing error: Cannot read file" or type-aware rules won't function properly.
|
|
74
|
+
|
|
75
|
+
#### Configuration Options
|
|
76
|
+
|
|
77
|
+
##### Custom TypeScript Config Path
|
|
78
|
+
|
|
79
|
+
If your tsconfig.json is not in the root, specify the path:
|
|
80
|
+
|
|
81
|
+
```javascript
|
|
82
|
+
import spsConfig from '@spscommerce/eslint-config-typescript/flat';
|
|
83
|
+
|
|
84
|
+
export default [
|
|
85
|
+
...spsConfig,
|
|
86
|
+
{
|
|
87
|
+
languageOptions: {
|
|
88
|
+
parserOptions: {
|
|
89
|
+
project: './path/to/tsconfig.json',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
##### Extending with Custom Rules
|
|
97
|
+
|
|
98
|
+
Add your own rules or override existing ones:
|
|
99
|
+
|
|
100
|
+
```javascript
|
|
101
|
+
import spsConfig from '@spscommerce/eslint-config-typescript/flat';
|
|
102
|
+
|
|
103
|
+
export default [
|
|
104
|
+
...spsConfig,
|
|
105
|
+
{
|
|
106
|
+
rules: {
|
|
107
|
+
// Override a rule
|
|
108
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
109
|
+
// Add a custom rule
|
|
110
|
+
'no-console': 'error',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
];
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
##### File-Specific Configuration
|
|
117
|
+
|
|
118
|
+
Apply different rules to specific files or patterns:
|
|
119
|
+
|
|
120
|
+
```javascript
|
|
121
|
+
import spsConfig from '@spscommerce/eslint-config-typescript/flat';
|
|
122
|
+
|
|
123
|
+
export default [
|
|
124
|
+
...spsConfig,
|
|
125
|
+
{
|
|
126
|
+
files: ['**/*.spec.ts', '**/*.test.ts'],
|
|
127
|
+
rules: {
|
|
128
|
+
'@typescript-eslint/no-magic-numbers': 'off',
|
|
129
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
];
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
##### Adding Additional Globals
|
|
136
|
+
|
|
137
|
+
If you need additional global variables:
|
|
138
|
+
|
|
139
|
+
```javascript
|
|
140
|
+
import spsConfig from '@spscommerce/eslint-config-typescript/flat';
|
|
141
|
+
|
|
142
|
+
export default [
|
|
143
|
+
...spsConfig,
|
|
144
|
+
{
|
|
145
|
+
languageOptions: {
|
|
146
|
+
globals: {
|
|
147
|
+
myGlobal: 'readonly',
|
|
148
|
+
myWritableGlobal: 'writable',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
];
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
#### Running ESLint
|
|
156
|
+
|
|
157
|
+
Add scripts to your `package.json`:
|
|
158
|
+
|
|
159
|
+
```json
|
|
160
|
+
{
|
|
161
|
+
"scripts": {
|
|
162
|
+
"lint": "eslint .",
|
|
163
|
+
"lint:fix": "eslint . --fix"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Then run:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
pnpm lint
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
#### Migration from Legacy Config
|
|
175
|
+
|
|
176
|
+
If you're migrating from the legacy `.eslintrc.js` format:
|
|
177
|
+
|
|
178
|
+
1. Rename `.eslintrc.js` to `.eslintrc.js.bak` (keep as backup)
|
|
179
|
+
2. Create `eslint.config.js` with the flat config format shown above
|
|
180
|
+
3. Note that `.eslintignore` is no longer used - add ignores directly in the config
|
|
181
|
+
4. Test thoroughly, as some rule behaviors may differ slightly
|
|
182
|
+
|
|
183
|
+
#### Differences from Legacy Config
|
|
184
|
+
|
|
185
|
+
- **No .eslintignore**: Use the `ignores` key in your config instead
|
|
186
|
+
- **Module format**: Flat config uses ES modules (import/export)
|
|
187
|
+
- **Explicit globals**: Browser/Node globals must be explicitly declared
|
|
188
|
+
- **Cascading is different**: Config objects cascade in order, later entries override earlier ones
|
|
189
|
+
|
|
190
|
+
#### Troubleshooting
|
|
191
|
+
|
|
192
|
+
**"Cannot find module '@spscommerce/eslint-config-typescript/flat'"**
|
|
193
|
+
- Ensure you're using the `/flat` import path, not just the package name
|
|
194
|
+
- Verify the package is installed in your node_modules
|
|
195
|
+
|
|
196
|
+
**"Parsing error: Cannot read file 'tsconfig.json'"**
|
|
197
|
+
- Check that the `project` path in `parserOptions` is correct
|
|
198
|
+
- Ensure your tsconfig.json exists and is valid
|
|
199
|
+
|
|
200
|
+
**Rules not being applied**
|
|
201
|
+
- Make sure you're spreading the config with `...spsConfig`
|
|
202
|
+
- Check that your custom config objects come after the spread
|
|
203
|
+
- Verify your files match the patterns (default: `**/*.ts`, `**/*.tsx`)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Using Legacy Config (ESLint 8.x)
|
|
207
|
+
|
|
208
|
+
This package's main export provides the legacy `.eslintrc` configuration format. This is the traditional ESLint configuration format that has been widely used.
|
|
209
|
+
|
|
210
|
+
#### Installation
|
|
211
|
+
|
|
212
|
+
Install the package and its peer dependencies:
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
pnpm add -D @spscommerce/eslint-config-typescript
|
|
216
|
+
pnpm add -D eslint@^8.57.1 typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-import eslint-import-resolver-typescript @stylistic/eslint-plugin
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
#### Basic Setup
|
|
220
|
+
|
|
221
|
+
Create an `.eslintrc.js` file in your project root:
|
|
222
|
+
|
|
223
|
+
```javascript
|
|
224
|
+
module.exports = {
|
|
225
|
+
extends: ['@spscommerce/eslint-config-typescript'],
|
|
226
|
+
parserOptions: {
|
|
227
|
+
project: './tsconfig.json',
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Or use `.eslintrc.json`:
|
|
233
|
+
|
|
234
|
+
```json
|
|
235
|
+
{
|
|
236
|
+
"extends": ["@spscommerce/eslint-config-typescript"],
|
|
237
|
+
"parserOptions": {
|
|
238
|
+
"project": "./tsconfig.json"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
#### Configuration Options
|
|
244
|
+
|
|
245
|
+
##### Custom TypeScript Config Path
|
|
246
|
+
|
|
247
|
+
If your tsconfig.json is not in the root, specify the path:
|
|
248
|
+
|
|
249
|
+
```javascript
|
|
250
|
+
module.exports = {
|
|
251
|
+
extends: ['@spscommerce/eslint-config-typescript'],
|
|
252
|
+
parserOptions: {
|
|
253
|
+
project: './path/to/tsconfig.json',
|
|
254
|
+
},
|
|
255
|
+
};
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
##### Extending with Custom Rules
|
|
259
|
+
|
|
260
|
+
Add your own rules or override existing ones:
|
|
261
|
+
|
|
262
|
+
```javascript
|
|
263
|
+
module.exports = {
|
|
264
|
+
extends: ['@spscommerce/eslint-config-typescript'],
|
|
265
|
+
parserOptions: {
|
|
266
|
+
project: './tsconfig.json',
|
|
267
|
+
},
|
|
268
|
+
rules: {
|
|
269
|
+
// Override a rule
|
|
270
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
271
|
+
// Add a custom rule
|
|
272
|
+
'no-console': 'error',
|
|
273
|
+
},
|
|
274
|
+
};
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
##### File-Specific Configuration (Overrides)
|
|
278
|
+
|
|
279
|
+
Apply different rules to specific files or patterns:
|
|
280
|
+
|
|
281
|
+
```javascript
|
|
282
|
+
module.exports = {
|
|
283
|
+
extends: ['@spscommerce/eslint-config-typescript'],
|
|
284
|
+
parserOptions: {
|
|
285
|
+
project: './tsconfig.json',
|
|
286
|
+
},
|
|
287
|
+
overrides: [
|
|
288
|
+
{
|
|
289
|
+
files: ['**/*.spec.ts', '**/*.test.ts'],
|
|
290
|
+
rules: {
|
|
291
|
+
'@typescript-eslint/no-magic-numbers': 'off',
|
|
292
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
};
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
##### Environment and Globals
|
|
300
|
+
|
|
301
|
+
Add environment-specific globals:
|
|
302
|
+
|
|
303
|
+
```javascript
|
|
304
|
+
module.exports = {
|
|
305
|
+
extends: ['@spscommerce/eslint-config-typescript'],
|
|
306
|
+
parserOptions: {
|
|
307
|
+
project: './tsconfig.json',
|
|
308
|
+
},
|
|
309
|
+
env: {
|
|
310
|
+
browser: true,
|
|
311
|
+
node: true,
|
|
312
|
+
},
|
|
313
|
+
globals: {
|
|
314
|
+
myGlobal: 'readonly',
|
|
315
|
+
myWritableGlobal: 'writable',
|
|
316
|
+
},
|
|
317
|
+
};
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
#### Ignoring Files
|
|
321
|
+
|
|
322
|
+
Create an `.eslintignore` file in your project root:
|
|
323
|
+
|
|
324
|
+
```
|
|
325
|
+
node_modules/
|
|
326
|
+
dist/
|
|
327
|
+
build/
|
|
328
|
+
coverage/
|
|
329
|
+
*.config.js
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
Or use the `ignorePatterns` option in your config:
|
|
333
|
+
|
|
334
|
+
```javascript
|
|
335
|
+
module.exports = {
|
|
336
|
+
extends: ['@spscommerce/eslint-config-typescript'],
|
|
337
|
+
parserOptions: {
|
|
338
|
+
project: './tsconfig.json',
|
|
339
|
+
},
|
|
340
|
+
ignorePatterns: ['dist/', 'build/', 'node_modules/', '*.config.js'],
|
|
341
|
+
};
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
#### Running ESLint
|
|
345
|
+
|
|
346
|
+
Add scripts to your `package.json`:
|
|
347
|
+
|
|
348
|
+
```json
|
|
349
|
+
{
|
|
350
|
+
"scripts": {
|
|
351
|
+
"lint": "eslint . --ext .ts,.tsx",
|
|
352
|
+
"lint:fix": "eslint . --ext .ts,.tsx --fix"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
Then run:
|
|
358
|
+
|
|
359
|
+
```bash
|
|
360
|
+
pnpm lint
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
#### Troubleshooting
|
|
364
|
+
|
|
365
|
+
**"Cannot find module '@spscommerce/eslint-config-typescript'"**
|
|
366
|
+
- Ensure the package is installed in your node_modules
|
|
367
|
+
- Check that your extends path is correct (should not include `/flat`)
|
|
368
|
+
|
|
369
|
+
**"Parsing error: Cannot read file 'tsconfig.json'"**
|
|
370
|
+
- Check that the `project` path in `parserOptions` is correct
|
|
371
|
+
- Ensure your tsconfig.json exists and is valid
|
|
372
|
+
- The path should be relative to the location of your ESLint config file
|
|
373
|
+
|
|
374
|
+
**Rules not being applied**
|
|
375
|
+
- Make sure you've extended the config with `extends: ['@spscommerce/eslint-config-typescript']`
|
|
376
|
+
- Check that your file extensions are included (`.ts`, `.tsx`)
|
|
377
|
+
- Verify the files aren't in your `.eslintignore` or `ignorePatterns`
|
|
378
|
+
|
|
379
|
+
**Performance issues**
|
|
380
|
+
- Consider using `TIMING=1 eslint .` to identify slow rules
|
|
381
|
+
- Make sure your tsconfig.json has appropriate `include`/`exclude` patterns
|
|
382
|
+
- Use `.eslintignore` to skip unnecessary directories
|
|
4
383
|
|
|
5
384
|
## About this package
|
|
6
385
|
|
|
@@ -8,9 +387,9 @@
|
|
|
8
387
|
|
|
9
388
|
This package previously lived in the SPSCommerce/typescript repo. That repo was forked from AirBnB's style guide and represents careful work in 2021 by the Frontend Architecture Working Group to select rules that are valuable. The goal was for this package to encourage a consistent developer experience.
|
|
10
389
|
|
|
11
|
-
The reality is that this
|
|
390
|
+
The reality is that this config has mixed acceptance across teams and repositories. Additionally, the introduction of a flat config in February of 2026 may cause more linting errors to be detected than on the old non-flat legacy config. We continue to need to improve how this package interacts with Prettier. Prettier is now a popular code formatter that is quite opinionated in ways that are at odds with our lint rules. Generally speaking we want to defer to prettier if we can, which means we will remove linting rules that cause issues with Prettier.
|
|
12
391
|
|
|
13
|
-
At the time of writing the latest
|
|
392
|
+
At the time of writing the latest legacy/non-flat version of this config requires a user to not upgrade past the following dependencies:
|
|
14
393
|
|
|
15
394
|
```
|
|
16
395
|
"@stylistic/eslint-plugin": "^3.1.0",
|
|
@@ -24,9 +403,9 @@ Historically this package was published manually and so it never acheived a v1 u
|
|
|
24
403
|
|
|
25
404
|
### Future
|
|
26
405
|
|
|
27
|
-
|
|
406
|
+
The ESLint@8 package is mostly complete as we cannot upgrade several of the peer dependencies without breaking existing users of the ESLint@8 config. We have introduced a flat config that hopefully can be used with newer ESLint versions and perhaps to migrate eventually to oxlint.
|
|
28
407
|
|
|
29
|
-
We are investigating the possibility of offering several
|
|
408
|
+
We are investigating the possibility of offering several other types of configs (or at least offering comprehensive examples). Whatever we do we'll need to accommodate various types of packages (browser, node, typescript, jsx, etc) and also find out how to work with prettier.
|
|
30
409
|
|
|
31
410
|
|
|
32
411
|
## SPS Commerce TypeScript Style Guide
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const bestPractices:
|
|
1
|
+
import { type Linter } from "eslint";
|
|
2
|
+
export declare const bestPractices: Linter.RulesRecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bestPractices.js","sourceRoot":"","sources":["../../src/rules/bestPractices.ts"],"names":[],"m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;OAGG;IACH,4BAA4B,EAAE,KAAK;IAEnC;;;OAGG;IACH,uBAAuB,EAAE,OAAO;IAEhC;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;;OAIG;IACH,eAAe,EAAE,KAAK;IACtB,kCAAkC,EAAE,KAAK;IAEzC;;;OAGG;IACH,wBAAwB,EAAE,KAAK;IAE/B;;;;OAIG;IACH,aAAa,EAAE,KAAK;IAEpB;;;OAGG;IACH,WAAW,EAAE,CAAC,OAAO;QACnB,SAAS;QACT,EAAE,wBAAwB,EAAE,KAAK,EAAE,CAAC;IAEtC;;;OAGG;IACH,IAAI,EAAE,OAAO;CACd,CAAC"}
|
package/lib/rules/es6.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const es6:
|
|
1
|
+
import { type Linter } from "eslint";
|
|
2
|
+
export declare const es6: Linter.RulesRecord;
|
package/lib/rules/es6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.js","sourceRoot":"","sources":["../../src/rules/es6.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"es6.js","sourceRoot":"","sources":["../../src/rules/es6.ts"],"names":[],"mappings":";;;AAEA,gCAAgC;AACnB,QAAA,GAAG,GAAuB;IACrC;;;OAGG;IACH,kBAAkB,EAAE,OAAO;IAE3B;;;OAGG;IACH,cAAc,EAAE,OAAO;IAEvB;;;OAGG;IACH,eAAe,EAAE,OAAO;IAExB;;;OAGG;IACH,mBAAmB,EAAE,OAAO;IAE5B;;;OAGG;IACH,wBAAwB,EAAE,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAEnE;;;OAGG;IACH,8BAA8B,EAAE,OAAO;IAEvC;;;OAGG;IACH,iBAAiB,EAAE,OAAO;IAE1B;;;OAGG;IACH,oBAAoB,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,IA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G;IACH,eAAe,EAAE,OAAO;IAExB;;;OAGG;IACH,iBAAiB,EAAE,OAAO;IAE1B;;;OAGG;IACH,eAAe,EAAE,OAAO;IAExB;;;OAGG;IACH,qBAAqB,EAAE,OAAO;IAE9B;;;OAGG;IACH,cAAc,EAAE,KAAK;IAErB;;;OAGG;IACH,oBAAoB,EAAE,OAAO;IAE7B;;;OAGG;IACH,wBAAwB,EAAE,OAAO;IAEjC;;;OAGG;IACH,oBAAoB,EAAE,OAAO;CAC9B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const possibleErrors:
|
|
1
|
+
import { type Linter } from "eslint";
|
|
2
|
+
export declare const possibleErrors: Linter.RulesRecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"possibleErrors.js","sourceRoot":"","sources":["../../src/rules/possibleErrors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"possibleErrors.js","sourceRoot":"","sources":["../../src/rules/possibleErrors.ts"],"names":[],"mappings":";;;AAEA,gCAAgC;AACnB,QAAA,cAAc,GAAuB;IAChD;;;OAGG;IACH,eAAe,EAAE,OAAO;IAExB;;;;OAIG;IACH,eAAe,EAAE,KAAK;IAEtB;;;OAGG;IACH,2BAA2B,EAAE,OAAO;IAEpC;;;OAGG;IACH,kBAAkB,EAAE,OAAO;IAE3B;;;OAGG;IACH,qBAAqB,EAAE,OAAO;IAE9B;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;IAErC;;;OAGG;IACH,YAAY,EAAE,MAAM;IAEpB;;;OAGG;IACH,uBAAuB,EAAE,MAAM;IAE/B;;;OAGG;IACH,kBAAkB,EAAE,OAAO;IAE3B;;;OAGG;IACH,aAAa,EAAE,OAAO;IAEtB;;;OAGG;IACH,cAAc,EAAE,OAAO;IAEvB;;;OAGG;IACH,iBAAiB,EAAE,OAAO;IAE1B;;;OAGG;IACH,cAAc,EAAE,OA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;IAEjC;;;OAGG;IACH,WAAW,EAAE,OAAO;IAEpB;;;OAGG;IACH,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC;CAC3D,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const strictMode:
|
|
1
|
+
import { type Linter } from "eslint";
|
|
2
|
+
export declare const strictMode: Linter.RulesRecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strictMode.js","sourceRoot":"","sources":["../../src/rules/strictMode.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"strictMode.js","sourceRoot":"","sources":["../../src/rules/strictMode.ts"],"names":[],"mappings":";;;AAEA,gCAAgC;AACnB,QAAA,UAAU,GAAuB;IAC5C;;;;OAIG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylisticIssues.js","sourceRoot":"","sources":["../../src/rules/stylisticIssues.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"stylisticIssues.js","sourceRoot":"","sources":["../../src/rules/stylisticIssues.ts"],"names":[],"mappings":";;;AAEA,gCAAgC;AACnB,QAAA,eAAe,GAAuB;IACjD;;;OAGG;IACH,uBAAuB,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;IAEhD;;;OAGG;IACH,uBAAuB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;IAE3C;;;OAGG;IACH,eAAe,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;IAEpC;;;OAGG;IACH,wBAAwB,EAAE,OAAO;IAEjC;;;OAGG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;IAE7C;;;OAGG;IACH,sBAAsB,EAAE,KAAK;IAE7B;;;OAGG;IACH,yBAAyB,EAAE,CAAC,OA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,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAEtC;;;OAGG;IACH,mBAAmB,EAAE,CAAC,OAAO;QAC3B,QAAQ;QACR,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAExB;;;OAGG;IACH,iBAAiB,EAAE,OAAO;IAE1B;;;OAGG;IACH,cAAc,EAAE,OAAO;IAEvB;;;OAGG;IACH,YAAY,EAAE,OAAO;IAErB;;;OAGG;IACH,WAAW,EAAE,KAAK;IAElB;;;OAGG;IACH,WAAW,EAAE,KAAK;IAElB;;;OAGG;IACH,qBAAqB,EAAE,OAAO;IAE9B;;;OAGG;IACH,wCAAwC,EAAE;QACxC,OAAO;QACP;YACE,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,QAAQ;SACrB;KACF;IAED;;;OAGG;IACH,iBAAiB,EAAE,OAAO;IAE1B;;;OAGG;IACH,4BAA4B,EAAE,OAAO;IAErC;;;OAGG;IACH,iBAAiB,EAAE,OAAO;IAE1B;;;OAGG;IACH,gBAAgB,EAAE,OAAO;IAEzB;;;OAGG;IACH,sBAAsB,EAAE,OAAO;IAE/B;;;OAGG;IACH,sBAAsB,EAAE,OAAO;IAE/B;;;OAGG;IACH,aAAa,EAAE,OAAO;IAEtB;;;OAGG;IACH,YAAY,EAAE,KAAK;CACpB,CAAC"}
|
package/lib/rules/variables.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const variables:
|
|
1
|
+
import { type Linter } from "eslint";
|
|
2
|
+
export declare const variables: Linter.RulesRecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variables.js","sourceRoot":"","sources":["../../src/rules/variables.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"variables.js","sourceRoot":"","sources":["../../src/rules/variables.ts"],"names":[],"mappings":";;;AAEA,gCAAgC;AACnB,QAAA,SAAS,GAAuB;IAC3C;;;;OAIG;IACH,mBAAmB,EAAE,KAAK;IAC1B,sCAAsC,EAAE,KAAK;IAE7C;;;OAGG;IACH,iBAAiB,EAAE,KAAK;IAExB;;;OAGG;IACH,eAAe,EAAE,OAAO;IAExB;;;OAGG;IACH,cAAc,EAAE,OAAO;IAEvB;;;OAGG;IACH,uBAAuB,EAAE;QACvB,OAAO;QACP;YACE,IAAI,EAAE,UAAU;YAChB,OAAO,EACL,6FAA6F;SAChG;QACD;YACE,IAAI,EAAE,OAAO;YACb,OAAO,EACL,uFAAuF;SAC1F;KACF;IAED;;;;OAIG;IACH,WAAW,EAAE,KAAK;IAClB,8BAA8B,EAAE,OAAO;IAEvC;;;OAGG;IACH,4BAA4B,EAAE,OAAO;IAErC;;;OAGG;IACH,UAAU,EAAE,OAAO;IAEnB;;;OAGG;IACH,eAAe,EAAE,OAAO;IAExB;;;OAGG;IACH,cAAc,EAAE,KAAK;IAErB;;;;OAIG;IACH,gBAAgB,EAAE,KAAK;IACvB,mCAAmC,EAAE,CAAC,OAAO,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC;IAE5E;;;;OAIG;IACH,sBAAsB,EAAE,KAAK;IAC7B,yCAAyC,EAAE,OAAO;CACnD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SPS Commerce ESLint Flat Config for TypeScript
|
|
3
|
+
*
|
|
4
|
+
* This is a flat config version of @spscommerce/eslint-config-typescript.
|
|
5
|
+
* Requires ESLint 8.57.1+ and uses the new flat config format.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```js
|
|
9
|
+
* // eslint.config.js
|
|
10
|
+
* import spsConfig from '@spscommerce/eslint-config-typescript/flat';
|
|
11
|
+
*
|
|
12
|
+
* export default [
|
|
13
|
+
* ...spsConfig,
|
|
14
|
+
* // your custom config
|
|
15
|
+
* ];
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare const config: any[];
|
|
19
|
+
export default config;
|