@sarj/eslint-plugin 17.1.1 → 17.1.3
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 +3594 -3451
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3589 -3446
- package/dist/rule-examples.cjs +1 -1
- package/dist/rule-examples.js +1 -1
- package/package.json +3 -1
package/dist/rule-examples.cjs
CHANGED
|
@@ -199,7 +199,7 @@ async function verifyRuleExamples(rule, setup = {}) {
|
|
|
199
199
|
files: ["**/*.{ts,tsx,js,jsx,mts,cts,mjs,cjs}"],
|
|
200
200
|
languageOptions: { parser: exampleParser, parserOptions: { project: tsconfig, tsconfigRootDir: root, disallowAutomaticSingleRunInference: true } },
|
|
201
201
|
plugins: { "@sarj": { rules: { [spec.ruleId]: rule } } },
|
|
202
|
-
rules: { [ruleId]: ["error", ...example.ruleOptions ?? rule.defaultOptions ?? []] }
|
|
202
|
+
rules: { [ruleId]: ["error", ...example.ruleOptions ?? rule.meta.defaultOptions ?? rule.defaultOptions ?? []] }
|
|
203
203
|
};
|
|
204
204
|
await verifyExample(new import_eslint.Linter({ cwd: root }), config, example, root, ruleId, setup.formatFixedSource);
|
|
205
205
|
} finally {
|
package/dist/rule-examples.js
CHANGED
|
@@ -165,7 +165,7 @@ async function verifyRuleExamples(rule, setup = {}) {
|
|
|
165
165
|
files: ["**/*.{ts,tsx,js,jsx,mts,cts,mjs,cjs}"],
|
|
166
166
|
languageOptions: { parser: exampleParser, parserOptions: { project: tsconfig, tsconfigRootDir: root, disallowAutomaticSingleRunInference: true } },
|
|
167
167
|
plugins: { "@sarj": { rules: { [spec.ruleId]: rule } } },
|
|
168
|
-
rules: { [ruleId]: ["error", ...example.ruleOptions ?? rule.defaultOptions ?? []] }
|
|
168
|
+
rules: { [ruleId]: ["error", ...example.ruleOptions ?? rule.meta.defaultOptions ?? rule.defaultOptions ?? []] }
|
|
169
169
|
};
|
|
170
170
|
await verifyExample(new Linter({ cwd: root }), config, example, root, ruleId, setup.formatFixedSource);
|
|
171
171
|
} finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarj/eslint-plugin",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.3",
|
|
4
4
|
"packageManager": "npm@12.2.1",
|
|
5
5
|
"description": "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
|
|
6
6
|
"type": "module",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"@vitest/eslint-plugin": "1.6.28",
|
|
75
75
|
"eslint": "10.13.0",
|
|
76
76
|
"eslint-node-test": "1.0.1",
|
|
77
|
+
"eslint-plugin-eslint-plugin": "7.6.2",
|
|
77
78
|
"eslint-plugin-better-tailwindcss": "^4.10.0",
|
|
78
79
|
"eslint-plugin-jest": "29.17.0",
|
|
79
80
|
"eslint-plugin-jsdoc": "65.4.2",
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
"jiti": "2.7.0",
|
|
95
96
|
"prettier": "3.9.10",
|
|
96
97
|
"tsup": "9.0.0",
|
|
98
|
+
"syncpack": "15.3.3",
|
|
97
99
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
98
100
|
"typescript-eslint": "^8.72.0",
|
|
99
101
|
"uuid": "13.0.0",
|