@robot-inventor/eslint-config 0.2.26 → 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/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +5 -3
- package/dist/cjs/package.json +2 -2
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +5 -3
- package/dist/esm/package.json +2 -2
- package/package.json +2 -2
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: {
|
|
@@ -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": "0.
|
|
3
|
+
"version": "2.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: {
|
|
@@ -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": "0.
|
|
3
|
+
"version": "2.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": "2.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",
|