@robot-inventor/eslint-config 10.2.0 → 11.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.ts +4 -5
- package/dist/index.js +2 -1
- package/package.json +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
3
|
-
declare const
|
|
4
|
-
declare const
|
|
5
|
-
declare const eslintReactConfigNoJSDoc: Linter.Config<Linter.RulesRecord>[];
|
|
1
|
+
declare const eslintConfigNoJSDoc: import("eslint/config").Config[];
|
|
2
|
+
declare const eslintConfig: import("eslint/config").Config[];
|
|
3
|
+
declare const eslintReactConfig: import("eslint/config").Config[];
|
|
4
|
+
declare const eslintReactConfigNoJSDoc: import("eslint/config").Config[];
|
|
6
5
|
export { eslintConfigNoJSDoc, eslintConfig, eslintReactConfig, eslintReactConfigNoJSDoc };
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import eslintConfigPrettier from "eslint-config-prettier";
|
|
|
5
5
|
import jsdoc from "eslint-plugin-jsdoc";
|
|
6
6
|
import react from "eslint-plugin-react";
|
|
7
7
|
import reactCompiler from "eslint-plugin-react-compiler";
|
|
8
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
8
9
|
// eslint-disable-next-line import-x/max-dependencies
|
|
9
10
|
import { configs as tseslintConfigs } from "typescript-eslint";
|
|
10
11
|
const eslintRules = {
|
|
@@ -101,7 +102,7 @@ const JSDocRule = defineConfig({
|
|
|
101
102
|
}
|
|
102
103
|
});
|
|
103
104
|
const eslintConfig = defineConfig(...eslintConfigNoJSDoc, ...JSDocRule);
|
|
104
|
-
const eslintReactConfigBase = defineConfig({
|
|
105
|
+
const eslintReactConfigBase = defineConfig(reactHooks.configs.flat["recommended-latest"], {
|
|
105
106
|
files: ["**/*.tsx"],
|
|
106
107
|
...react.configs.flat["recommended"],
|
|
107
108
|
plugins: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"lint": "eslint --flag unstable_native_nodejs_ts_config \"./src/**/*.ts\"",
|
|
13
|
+
"format": "prettier --write ./**/*.ts",
|
|
14
|
+
"format:check": "prettier --check ./**/*.ts",
|
|
13
15
|
"ci:version": "changeset version",
|
|
14
16
|
"ci:publish": "npm run build && changeset publish"
|
|
15
17
|
},
|
|
@@ -36,9 +38,10 @@
|
|
|
36
38
|
"eslint-config-prettier": "^10.0.0",
|
|
37
39
|
"eslint-import-resolver-typescript": "^4.0.0",
|
|
38
40
|
"eslint-plugin-import-x": "^4.0.0",
|
|
39
|
-
"eslint-plugin-jsdoc": "^
|
|
41
|
+
"eslint-plugin-jsdoc": "^61.0.0",
|
|
40
42
|
"eslint-plugin-react": "^7.37.3",
|
|
41
43
|
"eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
|
|
44
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
42
45
|
"typescript-eslint": "^8.26.0"
|
|
43
46
|
},
|
|
44
47
|
"devDependencies": {
|
|
@@ -47,6 +50,7 @@
|
|
|
47
50
|
"@eslint-types/jsdoc": "^48.2.2",
|
|
48
51
|
"@eslint-types/typescript-eslint": "^7.5.0",
|
|
49
52
|
"@robot-inventor/tsconfig-base": "^6.0.0",
|
|
53
|
+
"prettier": "^3.6.2",
|
|
50
54
|
"typescript": "^5.4.4"
|
|
51
55
|
}
|
|
52
56
|
}
|