@robot-inventor/eslint-config 0.2.26 → 1.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/README.md +0 -6
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/package.json +2 -2
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/package.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,12 +4,6 @@
|
|
|
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
|
-
|
|
13
7
|
Then, install the package:
|
|
14
8
|
|
|
15
9
|
```bash
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
1
|
+
import tseslint from "typescript-eslint";
|
|
2
|
+
declare const eslintConfigNoJSDoc: ReturnType<typeof tseslint.config>;
|
|
3
|
+
declare const eslintConfig: ReturnType<typeof tseslint.config>;
|
|
3
4
|
export { eslintConfigNoJSDoc, eslintConfig };
|
package/dist/cjs/index.js
CHANGED
|
@@ -8,10 +8,10 @@ const js_1 = __importDefault(require("@eslint/js"));
|
|
|
8
8
|
const typescript_eslint_1 = __importDefault(require("typescript-eslint"));
|
|
9
9
|
const eslint_plugin_jsdoc_1 = __importDefault(require("eslint-plugin-jsdoc"));
|
|
10
10
|
const eslint_config_prettier_1 = __importDefault(require("eslint-config-prettier"));
|
|
11
|
-
const eslintConfigNoJSDoc = typescript_eslint_1.default.config(js_1.default.configs.all, eslint_plugin_jsdoc_1.default.configs["flat/recommended-typescript-error"], eslint_config_prettier_1.default, ...typescript_eslint_1.default.configs.
|
|
11
|
+
const eslintConfigNoJSDoc = typescript_eslint_1.default.config(js_1.default.configs.all, eslint_plugin_jsdoc_1.default.configs["flat/recommended-typescript-error"], eslint_config_prettier_1.default, ...typescript_eslint_1.default.configs.strictTypeChecked, {
|
|
12
12
|
languageOptions: {
|
|
13
13
|
parserOptions: {
|
|
14
|
-
|
|
14
|
+
projectService: true
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
plugins: {
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
35
35
|
"eslint-config-prettier": "^9.1.0",
|
|
36
36
|
"eslint-plugin-jsdoc": "^48.2.5",
|
|
37
|
-
"typescript-eslint": "^
|
|
37
|
+
"typescript-eslint": "^8.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@changesets/changelog-github": "^0.5.0",
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
1
|
+
import tseslint from "typescript-eslint";
|
|
2
|
+
declare const eslintConfigNoJSDoc: ReturnType<typeof tseslint.config>;
|
|
3
|
+
declare const eslintConfig: ReturnType<typeof tseslint.config>;
|
|
3
4
|
export { eslintConfigNoJSDoc, eslintConfig };
|
package/dist/esm/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import eslint from "@eslint/js";
|
|
|
2
2
|
import tseslint from "typescript-eslint";
|
|
3
3
|
import jsdoc from "eslint-plugin-jsdoc";
|
|
4
4
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
5
|
-
const eslintConfigNoJSDoc = tseslint.config(eslint.configs.all, jsdoc.configs["flat/recommended-typescript-error"], eslintConfigPrettier, ...tseslint.configs.
|
|
5
|
+
const eslintConfigNoJSDoc = tseslint.config(eslint.configs.all, jsdoc.configs["flat/recommended-typescript-error"], eslintConfigPrettier, ...tseslint.configs.strictTypeChecked, {
|
|
6
6
|
languageOptions: {
|
|
7
7
|
parserOptions: {
|
|
8
|
-
|
|
8
|
+
projectService: true
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
plugins: {
|
package/dist/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
35
35
|
"eslint-config-prettier": "^9.1.0",
|
|
36
36
|
"eslint-plugin-jsdoc": "^48.2.5",
|
|
37
|
-
"typescript-eslint": "^
|
|
37
|
+
"typescript-eslint": "^8.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@changesets/changelog-github": "^0.5.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
46
46
|
"eslint-config-prettier": "^9.1.0",
|
|
47
47
|
"eslint-plugin-jsdoc": "^48.2.5",
|
|
48
|
-
"typescript-eslint": "^
|
|
48
|
+
"typescript-eslint": "^8.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@changesets/changelog-github": "^0.5.0",
|