@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.
@@ -0,0 +1,2 @@
1
+ import { type Linter } from "eslint";
2
+ export declare const bestPractices: Linter.RulesRecord;
@@ -0,0 +1,2 @@
1
+ import { type Linter } from "eslint";
2
+ export declare const es6: Linter.RulesRecord;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare const helpfulWarnings: Linter.RulesRecord;
@@ -0,0 +1,4 @@
1
+ export * from "./staticAnalysis";
2
+ export * from "./helpfulWarnings";
3
+ export * from "./moduleSystems";
4
+ export * from "./styleGuide";
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare const moduleSystems: Linter.RulesRecord;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare const staticAnalysis: Linter.RulesRecord;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare const styleGuide: Linter.RulesRecord;
@@ -0,0 +1,2 @@
1
+ import { type Linter } from "eslint";
2
+ export declare const possibleErrors: Linter.RulesRecord;
@@ -0,0 +1,2 @@
1
+ import { type Linter } from "eslint";
2
+ export declare const strictMode: Linter.RulesRecord;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare const stylisticIssues: Linter.RulesRecord;
@@ -0,0 +1,2 @@
1
+ import type { Linter } from "eslint";
2
+ export declare const typescript: Linter.RulesRecord;
@@ -0,0 +1,2 @@
1
+ import { type Linter } from "eslint";
2
+ export declare const variables: Linter.RulesRecord;
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@spscommerce/eslint-config-typescript",
3
- "version": "9.0.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.24.1",
33
- "@typescript-eslint/parser": "^8.24.1",
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.24.1",
42
- "@typescript-eslint/parser": "^8.24.1",
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": "tsc -p tsconfig.json",
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
- }