@eslint-react/kit 4.0.3-beta.0 → 4.2.0-beta.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 +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +4 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ function forbidElements({ forbidden }: ForbidElementsOptions): RuleDefinition {
|
|
|
123
123
|
```ts
|
|
124
124
|
interface Builder {
|
|
125
125
|
use<F extends (...args: any[]) => RuleDefinition>(factory: F, ...args: Parameters<F>): Builder;
|
|
126
|
-
getConfig(
|
|
126
|
+
getConfig(): Linter.Config;
|
|
127
127
|
getPlugin(): ESLint.Plugin;
|
|
128
128
|
}
|
|
129
129
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -101,9 +101,7 @@ interface RuleToolkit {
|
|
|
101
101
|
}
|
|
102
102
|
type RuleDefinition = (context: RuleContext, toolkit: RuleToolkit) => RuleListener;
|
|
103
103
|
interface Builder {
|
|
104
|
-
getConfig(
|
|
105
|
-
files?: string[];
|
|
106
|
-
}): Linter.Config;
|
|
104
|
+
getConfig(): Linter.Config;
|
|
107
105
|
getPlugin(): ESLint.Plugin;
|
|
108
106
|
use<F extends (...args: any[]) => RuleDefinition>(factory: F, ...args: Parameters<F>): Builder;
|
|
109
107
|
}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { kebabCase } from "string-ts";
|
|
|
4
4
|
|
|
5
5
|
//#region package.json
|
|
6
6
|
var name = "@eslint-react/kit";
|
|
7
|
-
var version = "4.0
|
|
7
|
+
var version = "4.2.0-beta.0";
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/index.ts
|
|
@@ -106,9 +106,10 @@ function build() {
|
|
|
106
106
|
const idGen = new IdGenerator();
|
|
107
107
|
const rules = {};
|
|
108
108
|
const builder = {
|
|
109
|
-
getConfig(
|
|
109
|
+
getConfig() {
|
|
110
110
|
return {
|
|
111
|
-
|
|
111
|
+
name,
|
|
112
|
+
files: ["**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}"],
|
|
112
113
|
plugins: { [name]: builder.getPlugin() },
|
|
113
114
|
rules: Object.keys(rules).reduce((acc, name$1) => {
|
|
114
115
|
acc[`${name}/${name$1}`] = "error";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/kit",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.2.0-beta.0",
|
|
4
4
|
"description": "ESLint React's utility module for building custom React rules with JavasSript functions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@typescript-eslint/utils": "^8.57.2",
|
|
40
40
|
"string-ts": "^2.3.1",
|
|
41
|
-
"@eslint-react/
|
|
42
|
-
"@eslint-react/
|
|
43
|
-
"@eslint-react/
|
|
41
|
+
"@eslint-react/core": "4.2.0-beta.0",
|
|
42
|
+
"@eslint-react/shared": "4.2.0-beta.0",
|
|
43
|
+
"@eslint-react/ast": "4.2.0-beta.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"eslint": "^10.1.0",
|