@ota-meshi/eslint-plugin 0.18.0 → 0.19.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/lib/config-builder/+astro-with-ts.d.ts +1 -1
- package/lib/config-builder/+astro.d.ts +1 -1
- package/lib/config-builder/+eslint-plugin.d.ts +1 -1
- package/lib/config-builder/+json.d.ts +1 -1
- package/lib/config-builder/+md.d.ts +1 -1
- package/lib/config-builder/+node.d.ts +1 -1
- package/lib/config-builder/+package-json.d.ts +1 -1
- package/lib/config-builder/+prettier.d.ts +1 -1
- package/lib/config-builder/+svelte-with-ts.d.ts +1 -1
- package/lib/config-builder/+svelte.d.ts +1 -1
- package/lib/config-builder/+toml.d.ts +1 -1
- package/lib/config-builder/+vue2-with-ts.d.ts +1 -1
- package/lib/config-builder/+vue2.d.ts +1 -1
- package/lib/config-builder/+vue3-with-ts.d.ts +1 -1
- package/lib/config-builder/+vue3.d.ts +1 -1
- package/lib/config-builder/+yaml.d.ts +1 -1
- package/lib/config-builder/base-plugins/eslint-comments.d.ts +1 -1
- package/lib/config-builder/base-plugins/jsdoc.d.ts +1 -1
- package/lib/config-builder/base-plugins/regexp.d.ts +1 -1
- package/lib/config-builder/plugins/json-schema.d.ts +1 -1
- package/lib/config-builder/plugins/ts/base-config.d.ts +1 -1
- package/lib/configs/+eslint-plugin.d.ts +1 -1
- package/lib/configs/+json.d.ts +1 -1
- package/lib/configs/+md.d.ts +1 -1
- package/lib/configs/+node.d.ts +1 -1
- package/lib/configs/+package-json.d.ts +1 -1
- package/lib/configs/+prettier.d.ts +1 -1
- package/lib/configs/+svelte-with-ts.d.ts +1 -1
- package/lib/configs/+svelte.d.ts +1 -1
- package/lib/configs/+toml.d.ts +1 -1
- package/lib/configs/+typescript.d.ts +1 -1
- package/lib/configs/+vue2-with-ts.d.ts +1 -1
- package/lib/configs/+vue2.d.ts +1 -1
- package/lib/configs/+vue3-with-ts.d.ts +1 -1
- package/lib/configs/+vue3.d.ts +1 -1
- package/lib/configs/+yaml.d.ts +1 -1
- package/lib/configs/base-plugins/eslint-comments.d.ts +1 -1
- package/lib/configs/base-plugins/jsdoc.d.ts +1 -1
- package/lib/configs/base-plugins/regexp.d.ts +1 -1
- package/lib/configs/base-plugins/regexp.js +1 -1
- package/lib/configs/json-schema/config.d.ts +1 -1
- package/lib/configs/recommended.d.ts +3 -3
- package/lib/configs/ts/base-config.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/utils/module.js +4 -1
- package/package.json +8 -8
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildAstroTs(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildAstroTs(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildAstro(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildAstro(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildESLintPlugin(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildESLintPlugin(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildJson(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildJson(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildMd(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildMd(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildNode(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildNode(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildPackageJson(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildPackageJson(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildPrettier(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildPrettier(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildSvelteTs(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildSvelteTs(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildSvelte(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildSvelte(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildToml(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildToml(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildVue2Ts(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildVue2Ts(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildVue2(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildVue2(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildVue3Ts(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildVue3Ts(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildVue3(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildVue3(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildYaml(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildYaml(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildESLintComments(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildESLintComments(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildJsdoc(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildJsdoc(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildRegexp(): Linter.FlatConfig<
|
|
2
|
+
export declare function buildRegexp(): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildJsonSchema(files: string[]): Linter.FlatConfig<
|
|
2
|
+
export declare function buildJsonSchema(files: string[]): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
export declare function buildTS(files: string[]): Linter.FlatConfig<
|
|
2
|
+
export declare function buildTS(files: string[]): Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
package/lib/configs/+json.d.ts
CHANGED
package/lib/configs/+md.d.ts
CHANGED
package/lib/configs/+node.d.ts
CHANGED
package/lib/configs/+svelte.d.ts
CHANGED
package/lib/configs/+toml.d.ts
CHANGED
package/lib/configs/+vue2.d.ts
CHANGED
package/lib/configs/+vue3.d.ts
CHANGED
package/lib/configs/+yaml.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const module_js_1 = require("../../utils/module.js");
|
|
3
3
|
const regexp_js_1 = require("../../config-helpers/base-plugins/regexp.js");
|
|
4
4
|
const fallback_js_1 = require("../fallback.js");
|
|
5
|
-
module.exports = (0, module_js_1.requireOf)(["eslint-plugin-regexp
|
|
5
|
+
module.exports = (0, module_js_1.requireOf)(["eslint-plugin-regexp@>=1.0.0 <3.0.0"], () => ({
|
|
6
6
|
extends: ["plugin:regexp/recommended"],
|
|
7
7
|
rules: {
|
|
8
8
|
...regexp_js_1.regexpExtendRules,
|
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
ecmaVersion: number;
|
|
6
6
|
};
|
|
7
7
|
rules: {
|
|
8
|
-
[
|
|
8
|
+
[key: string]: import("@eslint/core").RuleConfig<unknown[]>;
|
|
9
9
|
};
|
|
10
10
|
overrides: ({
|
|
11
11
|
files: string[];
|
|
@@ -15,10 +15,10 @@ declare const _default: {
|
|
|
15
15
|
} | {
|
|
16
16
|
files: string[];
|
|
17
17
|
globals: {
|
|
18
|
-
[name: string]: import("eslint").
|
|
18
|
+
[name: string]: import("@eslint/core").GlobalAccess;
|
|
19
19
|
};
|
|
20
20
|
rules: {
|
|
21
|
-
[
|
|
21
|
+
[key: string]: import("@eslint/core").RuleConfig<unknown[]>;
|
|
22
22
|
};
|
|
23
23
|
extends?: undefined;
|
|
24
24
|
})[];
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BuildConfigOptions } from "./config-builder/index.js";
|
|
2
|
-
export declare function config(options?: BuildConfigOptions): import("eslint").Linter.FlatConfig<import("eslint").
|
|
2
|
+
export declare function config(options?: BuildConfigOptions): import("eslint").Linter.FlatConfig<import("@eslint/core").RulesConfig>[];
|
|
3
3
|
export declare const configs: {
|
|
4
4
|
recommended: any;
|
|
5
5
|
"+eslint-plugin": any;
|
package/lib/utils/module.js
CHANGED
|
@@ -91,7 +91,10 @@ function has(name) {
|
|
|
91
91
|
const moduleRootPath = (0, find_root_dir_js_1.findRootDir)(modulePath);
|
|
92
92
|
try {
|
|
93
93
|
const pkg = requireFromCwd(`${moduleRootPath}/package.json`);
|
|
94
|
-
|
|
94
|
+
if (semver_1.default.parse(version, false, false)) {
|
|
95
|
+
return semver_1.default.lte(version, pkg.version);
|
|
96
|
+
}
|
|
97
|
+
return semver_1.default.satisfies(pkg.version, version);
|
|
95
98
|
}
|
|
96
99
|
catch {
|
|
97
100
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ota-meshi/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "ESLint configuration plugin for me.",
|
|
5
5
|
"repository": "git+https://github.com/ota-meshi/eslint-plugin.git",
|
|
6
6
|
"homepage": "https://github.com/ota-meshi/eslint-plugin#readme",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
29
|
-
"eslint": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
30
|
-
"eslint-plugin-regexp": "^2.5.0"
|
|
29
|
+
"eslint": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
|
|
30
|
+
"eslint-plugin-regexp": "^2.5.0 || ^3.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@eslint/js": "^9.5.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
38
38
|
"@types/eslint": "^9.0.0",
|
|
39
39
|
"@types/eslint__js": "^8.42.3",
|
|
40
|
-
"@types/node": "^
|
|
40
|
+
"@types/node": "^24.0.0",
|
|
41
41
|
"@types/semver": "^7.5.8",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
43
43
|
"@typescript-eslint/parser": "^8.16.0",
|
|
@@ -45,21 +45,21 @@
|
|
|
45
45
|
"eslint-config-prettier": "^10.0.0",
|
|
46
46
|
"eslint-plugin-astro": "^1.0.0",
|
|
47
47
|
"eslint-plugin-eslint-plugin": "^7.0.0",
|
|
48
|
-
"eslint-plugin-jsdoc": "^
|
|
48
|
+
"eslint-plugin-jsdoc": "^62.0.0",
|
|
49
49
|
"eslint-plugin-json-schema-validator": "^5.0.0",
|
|
50
50
|
"eslint-plugin-jsonc": "^2.0.0",
|
|
51
51
|
"eslint-plugin-markdown": "^5.0.0",
|
|
52
52
|
"eslint-plugin-n": "^17.0.0",
|
|
53
|
-
"eslint-plugin-node-dependencies": "^0.
|
|
53
|
+
"eslint-plugin-node-dependencies": "^1.0.0",
|
|
54
54
|
"eslint-plugin-prettier": "^5.0.0",
|
|
55
55
|
"eslint-plugin-regexp": "^2.5.0",
|
|
56
56
|
"eslint-plugin-svelte": "^2.36.0",
|
|
57
|
-
"eslint-plugin-toml": "^0.
|
|
57
|
+
"eslint-plugin-toml": "^0.13.0",
|
|
58
58
|
"eslint-plugin-vue": "^9.0.0",
|
|
59
59
|
"eslint-plugin-yml": "^1.0.0",
|
|
60
60
|
"mocha": "^11.0.0",
|
|
61
61
|
"prettier": "^3.0.0",
|
|
62
|
-
"prettier-plugin-pkg": "^0.
|
|
62
|
+
"prettier-plugin-pkg": "^0.21.0",
|
|
63
63
|
"prettier-plugin-svelte": "^3.0.0",
|
|
64
64
|
"svelte": "^5.0.0",
|
|
65
65
|
"typescript": "^5.0.0",
|