@spscommerce/eslint-config-typescript 9.0.0 → 9.0.2
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/package.json
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/eslint-config-typescript",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "SPS official linter configuration for TypeScript.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"require": "./lib/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./flat": {
|
|
11
|
+
"import": "./lib-esm/flat.mjs",
|
|
12
|
+
"types": "./lib-esm/flat.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
6
15
|
"repository": {
|
|
7
16
|
"type": "git",
|
|
8
17
|
"url": "https://github.com/SPSCommerce/sps-js-shared.git"
|
|
@@ -27,24 +36,34 @@
|
|
|
27
36
|
"url": "https://github.com/SPSCommerce/sps-js-shared/issues"
|
|
28
37
|
},
|
|
29
38
|
"homepage": "https://github.com/SPSCommerce/sps-js-shared/tree/main/packages/%40spscommerce/eslint-config-typescript#readme",
|
|
39
|
+
"files": [
|
|
40
|
+
"lib",
|
|
41
|
+
"lib-esm",
|
|
42
|
+
"README.md",
|
|
43
|
+
"GUIDE.md"
|
|
44
|
+
],
|
|
30
45
|
"peerDependencies": {
|
|
31
46
|
"@stylistic/eslint-plugin": "^3.1.0",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
33
|
-
"@typescript-eslint/parser": "^8.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
48
|
+
"@typescript-eslint/parser": "^8.56.1",
|
|
34
49
|
"eslint": "^8.57.1",
|
|
35
50
|
"eslint-import-resolver-typescript": "^3.8.2",
|
|
36
|
-
"eslint-plugin-import": "^2.31.0"
|
|
51
|
+
"eslint-plugin-import": "^2.31.0",
|
|
52
|
+
"typescript-eslint": "^8.56.1"
|
|
37
53
|
},
|
|
38
54
|
"devDependencies": {
|
|
39
55
|
"@stylistic/eslint-plugin": "^3.1.0",
|
|
40
56
|
"@types/eslint": "^8.56.10",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
42
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
58
|
+
"@typescript-eslint/parser": "^8.56.1",
|
|
43
59
|
"eslint-import-resolver-typescript": "^3.8.2",
|
|
44
|
-
"eslint-plugin-import": "^2.31.0"
|
|
60
|
+
"eslint-plugin-import": "^2.31.0",
|
|
61
|
+
"typescript-eslint": "^8.56.1"
|
|
45
62
|
},
|
|
46
63
|
"scripts": {
|
|
47
|
-
"build": "
|
|
64
|
+
"build": "pnpm run build:legacy && pnpm run build:flat",
|
|
65
|
+
"build:legacy": "tsc -p tsconfig.json",
|
|
66
|
+
"build:flat": "vite build --config vite.config.mjs && tsc -p tsconfig.flat.json --emitDeclarationOnly",
|
|
48
67
|
"pub": "pnpm pack && node ../../../scripts/publish-package.mjs"
|
|
49
68
|
}
|
|
50
69
|
}
|
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"baseUrl": "./",
|
|
5
|
-
"rootDir": "src/",
|
|
6
|
-
"outDir": "./lib",
|
|
7
|
-
"target": "esnext",
|
|
8
|
-
"module": "commonjs",
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"declaration": true,
|
|
11
|
-
"types": ["vitest/globals"]
|
|
12
|
-
},
|
|
13
|
-
"include": ["src/**/*"],
|
|
14
|
-
"exclude": ["node_modules", "lib"]
|
|
15
|
-
}
|