@robot-inventor/eslint-config 1.0.0 → 2.0.1
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 +6 -0
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/package.json +2 -2
- package/dist/esm/index.js +3 -1
- package/dist/esm/package.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
Until [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) supports ESLint v9, you need to add the following code to your ``.npmrc`` before installing ``@robot-inventor/eslint-config``. If you didn't add it, you will get peer dependency warnings. See [this issue](https://github.com/typescript-eslint/typescript-eslint/issues/8211#issuecomment-2041466332) for more information.
|
|
8
|
+
|
|
9
|
+
```ini
|
|
10
|
+
legacy-peer-deps=true
|
|
11
|
+
```
|
|
12
|
+
|
|
7
13
|
Then, install the package:
|
|
8
14
|
|
|
9
15
|
```bash
|
package/dist/cjs/index.js
CHANGED
|
@@ -73,7 +73,9 @@ const eslintConfigNoJSDoc = typescript_eslint_1.default.config(js_1.default.conf
|
|
|
73
73
|
],
|
|
74
74
|
"no-new": "off",
|
|
75
75
|
"@typescript-eslint/explicit-function-return-type": "error",
|
|
76
|
-
"@typescript-eslint/explicit-member-accessibility": "error"
|
|
76
|
+
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
77
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
78
|
+
"@typescript-eslint/no-import-type-side-effects": "error"
|
|
77
79
|
}
|
|
78
80
|
});
|
|
79
81
|
exports.eslintConfigNoJSDoc = eslintConfigNoJSDoc;
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/eslint__js": "^8.42.3",
|
|
34
34
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
35
35
|
"eslint-config-prettier": "^9.1.0",
|
|
36
|
-
"eslint-plugin-jsdoc": "^
|
|
36
|
+
"eslint-plugin-jsdoc": "^49.0.0",
|
|
37
37
|
"typescript-eslint": "^8.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
package/dist/esm/index.js
CHANGED
|
@@ -67,7 +67,9 @@ const eslintConfigNoJSDoc = tseslint.config(eslint.configs.all, jsdoc.configs["f
|
|
|
67
67
|
],
|
|
68
68
|
"no-new": "off",
|
|
69
69
|
"@typescript-eslint/explicit-function-return-type": "error",
|
|
70
|
-
"@typescript-eslint/explicit-member-accessibility": "error"
|
|
70
|
+
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
71
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
72
|
+
"@typescript-eslint/no-import-type-side-effects": "error"
|
|
71
73
|
}
|
|
72
74
|
});
|
|
73
75
|
const JSDocRule = tseslint.config({
|
package/dist/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/eslint__js": "^8.42.3",
|
|
34
34
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
35
35
|
"eslint-config-prettier": "^9.1.0",
|
|
36
|
-
"eslint-plugin-jsdoc": "^
|
|
36
|
+
"eslint-plugin-jsdoc": "^49.0.0",
|
|
37
37
|
"typescript-eslint": "^8.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@types/eslint__js": "^8.42.3",
|
|
45
45
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
46
46
|
"eslint-config-prettier": "^9.1.0",
|
|
47
|
-
"eslint-plugin-jsdoc": "^
|
|
47
|
+
"eslint-plugin-jsdoc": "^49.0.0",
|
|
48
48
|
"typescript-eslint": "^8.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|