@sarj/eslint-plugin 16.16.1 → 16.17.0
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/dist/index.cjs +6 -5
- package/dist/index.js +6 -5
- package/package.json +6 -5
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
52
52
|
// package.json
|
|
53
53
|
var package_default = {
|
|
54
54
|
name: "@sarj/eslint-plugin",
|
|
55
|
-
version: "16.
|
|
55
|
+
version: "16.17.0",
|
|
56
56
|
packageManager: "npm@12.2.0",
|
|
57
57
|
description: "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
58
58
|
type: "module",
|
|
@@ -87,12 +87,12 @@ var package_default = {
|
|
|
87
87
|
scripts: {
|
|
88
88
|
build: "tsup",
|
|
89
89
|
dogfood: "npm run build && npm run dogfood:built",
|
|
90
|
-
lint: "eslint . ../../.github/scripts ../standards/src ../standards/eslint.config.
|
|
90
|
+
lint: "eslint . ../../.github/scripts ../standards/src ../standards/eslint.config.mts --max-warnings 0",
|
|
91
91
|
prepack: "npm run build && npm run verify-package",
|
|
92
92
|
test: "vitest run",
|
|
93
|
-
typecheck: "tsc --noEmit",
|
|
93
|
+
typecheck: "tsc --noEmit && tsc --project tsconfig.tools.json",
|
|
94
94
|
"verify-package": `node -e "const fs=require('node:fs'),p=require('./package.json'),walk=x=>typeof x==='string'?[x]:x&&typeof x==='object'?Object.values(x).flatMap(walk):[];for(const file of new Set([p.main,p.module,p.types,...walk(p.exports)].filter(Boolean).map(x=>x.startsWith('./')?x.slice(2):x))){if(!file.startsWith('dist/'))throw new Error('export must live under dist: '+file);const stat=fs.statSync(file);if(!stat.isFile()||stat.size===0)throw new Error('missing or empty export: '+file)}"`,
|
|
95
|
-
"dogfood:built": `eslint --config eslint.dogfood.config.
|
|
95
|
+
"dogfood:built": `eslint --config eslint.dogfood.config.ts src tests scripts eslint-rule-setting.ts eslint.config.ts eslint.dogfood.config.ts module-constant-naming-options.ts tsup.config.ts vitest.config.ts --max-warnings 0 && node -e "import('./dist/index.js').then(({default:p}) => console.log('dogfood: '+Object.keys(p.rules).length+' TypeScript rules, 0 diagnostics'))"`
|
|
96
96
|
},
|
|
97
97
|
keywords: [
|
|
98
98
|
"eslint",
|
|
@@ -142,7 +142,8 @@ var package_default = {
|
|
|
142
142
|
typescript: "npm:@typescript/typescript6@6.0.2",
|
|
143
143
|
"typescript-eslint": "^8.71.2",
|
|
144
144
|
vitest: "5.0.4",
|
|
145
|
-
zod: "4.6.7"
|
|
145
|
+
zod: "4.6.7",
|
|
146
|
+
jiti: "2.7.0"
|
|
146
147
|
},
|
|
147
148
|
peerDependencies: {
|
|
148
149
|
eslint: ">=9.39.4",
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@sarj/eslint-plugin",
|
|
4
|
-
version: "16.
|
|
4
|
+
version: "16.17.0",
|
|
5
5
|
packageManager: "npm@12.2.0",
|
|
6
6
|
description: "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
7
7
|
type: "module",
|
|
@@ -36,12 +36,12 @@ var package_default = {
|
|
|
36
36
|
scripts: {
|
|
37
37
|
build: "tsup",
|
|
38
38
|
dogfood: "npm run build && npm run dogfood:built",
|
|
39
|
-
lint: "eslint . ../../.github/scripts ../standards/src ../standards/eslint.config.
|
|
39
|
+
lint: "eslint . ../../.github/scripts ../standards/src ../standards/eslint.config.mts --max-warnings 0",
|
|
40
40
|
prepack: "npm run build && npm run verify-package",
|
|
41
41
|
test: "vitest run",
|
|
42
|
-
typecheck: "tsc --noEmit",
|
|
42
|
+
typecheck: "tsc --noEmit && tsc --project tsconfig.tools.json",
|
|
43
43
|
"verify-package": `node -e "const fs=require('node:fs'),p=require('./package.json'),walk=x=>typeof x==='string'?[x]:x&&typeof x==='object'?Object.values(x).flatMap(walk):[];for(const file of new Set([p.main,p.module,p.types,...walk(p.exports)].filter(Boolean).map(x=>x.startsWith('./')?x.slice(2):x))){if(!file.startsWith('dist/'))throw new Error('export must live under dist: '+file);const stat=fs.statSync(file);if(!stat.isFile()||stat.size===0)throw new Error('missing or empty export: '+file)}"`,
|
|
44
|
-
"dogfood:built": `eslint --config eslint.dogfood.config.
|
|
44
|
+
"dogfood:built": `eslint --config eslint.dogfood.config.ts src tests scripts eslint-rule-setting.ts eslint.config.ts eslint.dogfood.config.ts module-constant-naming-options.ts tsup.config.ts vitest.config.ts --max-warnings 0 && node -e "import('./dist/index.js').then(({default:p}) => console.log('dogfood: '+Object.keys(p.rules).length+' TypeScript rules, 0 diagnostics'))"`
|
|
45
45
|
},
|
|
46
46
|
keywords: [
|
|
47
47
|
"eslint",
|
|
@@ -91,7 +91,8 @@ var package_default = {
|
|
|
91
91
|
typescript: "npm:@typescript/typescript6@6.0.2",
|
|
92
92
|
"typescript-eslint": "^8.71.2",
|
|
93
93
|
vitest: "5.0.4",
|
|
94
|
-
zod: "4.6.7"
|
|
94
|
+
zod: "4.6.7",
|
|
95
|
+
jiti: "2.7.0"
|
|
95
96
|
},
|
|
96
97
|
peerDependencies: {
|
|
97
98
|
eslint: ">=9.39.4",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarj/eslint-plugin",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.17.0",
|
|
4
4
|
"packageManager": "npm@12.2.0",
|
|
5
5
|
"description": "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
6
6
|
"type": "module",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup",
|
|
37
37
|
"dogfood": "npm run build && npm run dogfood:built",
|
|
38
|
-
"lint": "eslint . ../../.github/scripts ../standards/src ../standards/eslint.config.
|
|
38
|
+
"lint": "eslint . ../../.github/scripts ../standards/src ../standards/eslint.config.mts --max-warnings 0",
|
|
39
39
|
"prepack": "npm run build && npm run verify-package",
|
|
40
40
|
"test": "vitest run",
|
|
41
|
-
"typecheck": "tsc --noEmit",
|
|
41
|
+
"typecheck": "tsc --noEmit && tsc --project tsconfig.tools.json",
|
|
42
42
|
"verify-package": "node -e \"const fs=require('node:fs'),p=require('./package.json'),walk=x=>typeof x==='string'?[x]:x&&typeof x==='object'?Object.values(x).flatMap(walk):[];for(const file of new Set([p.main,p.module,p.types,...walk(p.exports)].filter(Boolean).map(x=>x.startsWith('./')?x.slice(2):x))){if(!file.startsWith('dist/'))throw new Error('export must live under dist: '+file);const stat=fs.statSync(file);if(!stat.isFile()||stat.size===0)throw new Error('missing or empty export: '+file)}\"",
|
|
43
|
-
"dogfood:built": "eslint --config eslint.dogfood.config.
|
|
43
|
+
"dogfood:built": "eslint --config eslint.dogfood.config.ts src tests scripts eslint-rule-setting.ts eslint.config.ts eslint.dogfood.config.ts module-constant-naming-options.ts tsup.config.ts vitest.config.ts --max-warnings 0 && node -e \"import('./dist/index.js').then(({default:p}) => console.log('dogfood: '+Object.keys(p.rules).length+' TypeScript rules, 0 diagnostics'))\""
|
|
44
44
|
},
|
|
45
45
|
"keywords": [
|
|
46
46
|
"eslint",
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
91
91
|
"typescript-eslint": "^8.71.2",
|
|
92
92
|
"vitest": "5.0.4",
|
|
93
|
-
"zod": "4.6.7"
|
|
93
|
+
"zod": "4.6.7",
|
|
94
|
+
"jiti": "2.7.0"
|
|
94
95
|
},
|
|
95
96
|
"peerDependencies": {
|
|
96
97
|
"eslint": ">=9.39.4",
|