@kurateh/eslint-plugin 2.0.0-beta.0 → 2.0.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.d.mts CHANGED
@@ -1,5 +1,15 @@
1
- import { ESLint } from 'eslint';
1
+ import * as eslint from 'eslint';
2
2
 
3
- declare const plugin: ESLint.Plugin;
3
+ declare const plugin: {
4
+ configs: {
5
+ recommended: (eslint.Linter.Config<eslint.Linter.RulesRecord> | {
6
+ readonly rules: Readonly<eslint.Linter.RulesRecord>;
7
+ })[];
8
+ react: (eslint.Linter.Config<eslint.Linter.RulesRecord> | {
9
+ readonly rules: Readonly<eslint.Linter.RulesRecord>;
10
+ })[];
11
+ };
12
+ rules: Record<string, eslint.Rule.RuleModule>;
13
+ };
4
14
 
5
15
  export { plugin as default };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,15 @@
1
- import { ESLint } from 'eslint';
1
+ import * as eslint from 'eslint';
2
2
 
3
- declare const plugin: ESLint.Plugin;
3
+ declare const plugin: {
4
+ configs: {
5
+ recommended: (eslint.Linter.Config<eslint.Linter.RulesRecord> | {
6
+ readonly rules: Readonly<eslint.Linter.RulesRecord>;
7
+ })[];
8
+ react: (eslint.Linter.Config<eslint.Linter.RulesRecord> | {
9
+ readonly rules: Readonly<eslint.Linter.RulesRecord>;
10
+ })[];
11
+ };
12
+ rules: Record<string, eslint.Rule.RuleModule>;
13
+ };
4
14
 
5
15
  export { plugin as default };
package/dist/index.js CHANGED
@@ -117,7 +117,7 @@ var import_path_default = createRule({
117
117
  create: (context) => {
118
118
  return {
119
119
  ImportDeclaration: (node) => {
120
- const fileName = context.getFilename();
120
+ const fileName = context.filename;
121
121
  const absolutePathInfo = getAbsolutePathInfo(fileName);
122
122
  if (absolutePathInfo === void 0) {
123
123
  return;
package/dist/index.mjs CHANGED
@@ -106,7 +106,7 @@ var import_path_default = createRule({
106
106
  create: (context) => {
107
107
  return {
108
108
  ImportDeclaration: (node) => {
109
- const fileName = context.getFilename();
109
+ const fileName = context.filename;
110
110
  const absolutePathInfo = getAbsolutePathInfo(fileName);
111
111
  if (absolutePathInfo === void 0) {
112
112
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kurateh/eslint-plugin",
3
- "version": "2.0.0-beta.0",
3
+ "version": "2.0.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/index.mjs",
@@ -22,7 +22,7 @@
22
22
  "@kurateh/eslint-plugin": "file:",
23
23
  "@types/node": "^22.10.2",
24
24
  "@types/react": "^19.2.7",
25
- "eslint": "^9.39.2",
25
+ "eslint": "~9.17.0",
26
26
  "prettier": "^3.7.4",
27
27
  "react": "^19.2.3",
28
28
  "tsup": "^8.5.1",