@sarj/eslint-plugin 9.11.0 → 9.13.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/README.md +8 -0
- package/dist/index.cjs +617 -345
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +612 -340
- package/package.json +10 -2
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarj/eslint-plugin",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.13.0",
|
|
4
|
+
"packageManager": "npm@11.19.0",
|
|
4
5
|
"description": "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "./dist/index.cjs",
|
|
@@ -33,8 +34,10 @@
|
|
|
33
34
|
"scripts": {
|
|
34
35
|
"build": "tsup",
|
|
35
36
|
"lint": "eslint . --max-warnings 0",
|
|
37
|
+
"prepack": "npm run build && npm run verify-package",
|
|
36
38
|
"test": "vitest run",
|
|
37
|
-
"typecheck": "tsc --noEmit"
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"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)}\""
|
|
38
41
|
},
|
|
39
42
|
"keywords": [
|
|
40
43
|
"eslint",
|
|
@@ -78,12 +81,17 @@
|
|
|
78
81
|
"engines": {
|
|
79
82
|
"node": ">=22.0.0"
|
|
80
83
|
},
|
|
84
|
+
"allowScripts": {
|
|
85
|
+
"esbuild@0.28.1": true,
|
|
86
|
+
"fsevents@2.3.3": true
|
|
87
|
+
},
|
|
81
88
|
"peerDependenciesMeta": {
|
|
82
89
|
"typescript": {
|
|
83
90
|
"optional": true
|
|
84
91
|
}
|
|
85
92
|
},
|
|
86
93
|
"overrides": {
|
|
94
|
+
"brace-expansion@^5.0.0": "5.0.9",
|
|
87
95
|
"esbuild": "^0.28.1",
|
|
88
96
|
"eslint-plugin-react": {
|
|
89
97
|
"eslint": "$eslint"
|