@robot-inventor/eslint-config 4.0.2 → 4.0.3
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/package.json +3 -2
- package/dist/esm/index.d.ts +3 -0
- package/dist/{cjs/src → esm}/index.js +12 -19
- package/dist/esm/package.json +2 -1
- package/package.json +2 -1
- package/dist/cjs/eslint.config.d.ts +0 -2
- package/dist/cjs/eslint.config.js +0 -10
- package/dist/cjs/src/index.d.ts +0 -3
- package/dist/esm/eslint.config.d.ts +0 -2
- package/dist/esm/eslint.config.js +0 -8
- /package/dist/{esm/src → cjs}/index.d.ts +0 -0
- /package/dist/{esm/src → cjs}/index.js +0 -0
package/dist/cjs/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
|
-
"type": "
|
|
5
|
+
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@changesets/cli": "^2.27.1",
|
|
47
47
|
"@eslint-types/jsdoc": "^48.2.2",
|
|
48
48
|
"@eslint-types/typescript-eslint": "^7.5.0",
|
|
49
|
+
"@robot-inventor/tsconfig-base": "^1.0.0",
|
|
49
50
|
"@types/eslint__eslintrc": "^2.1.2",
|
|
50
51
|
"eslint": "^9.9.0",
|
|
51
52
|
"jiti": "^1.21.6",
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const eslintrc_1 = require("@eslint/eslintrc");
|
|
9
|
-
const js_1 = __importDefault(require("@eslint/js"));
|
|
10
|
-
const eslint_config_prettier_1 = __importDefault(require("eslint-config-prettier"));
|
|
11
|
-
const eslint_plugin_import_x_1 = __importDefault(require("eslint-plugin-import-x"));
|
|
12
|
-
const eslint_plugin_jsdoc_1 = __importDefault(require("eslint-plugin-jsdoc"));
|
|
13
|
-
const compat = new eslintrc_1.FlatCompat();
|
|
1
|
+
import { config, configs as tseslintConfigs } from "typescript-eslint";
|
|
2
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
3
|
+
import eslint from "@eslint/js";
|
|
4
|
+
import eslintConfigPrettier from "eslint-config-prettier";
|
|
5
|
+
import importX from "eslint-plugin-import-x";
|
|
6
|
+
import jsdoc from "eslint-plugin-jsdoc";
|
|
7
|
+
const compat = new FlatCompat();
|
|
14
8
|
const eslintRules = {
|
|
15
9
|
"array-element-newline": ["error", "consistent"],
|
|
16
10
|
curly: ["error", "multi-line"],
|
|
@@ -108,14 +102,14 @@ const jsdocRules = {
|
|
|
108
102
|
}
|
|
109
103
|
]
|
|
110
104
|
};
|
|
111
|
-
const eslintConfigNoJSDoc =
|
|
105
|
+
const eslintConfigNoJSDoc = config(eslint.configs.all, jsdoc.configs["flat/recommended-typescript-error"], eslintConfigPrettier, ...tseslintConfigs.strictTypeChecked, ...tseslintConfigs.stylisticTypeChecked, ...compat.config(importX.configs.recommended), importX.configs.typescript, {
|
|
112
106
|
languageOptions: {
|
|
113
107
|
parserOptions: {
|
|
114
108
|
projectService: true
|
|
115
109
|
}
|
|
116
110
|
},
|
|
117
111
|
plugins: {
|
|
118
|
-
jsdoc
|
|
112
|
+
jsdoc
|
|
119
113
|
},
|
|
120
114
|
linterOptions: {
|
|
121
115
|
reportUnusedDisableDirectives: "error"
|
|
@@ -132,11 +126,10 @@ const eslintConfigNoJSDoc = (0, typescript_eslint_1.config)(js_1.default.configs
|
|
|
132
126
|
...importXRules
|
|
133
127
|
}
|
|
134
128
|
});
|
|
135
|
-
|
|
136
|
-
const JSDocRule = (0, typescript_eslint_1.config)({
|
|
129
|
+
const JSDocRule = config({
|
|
137
130
|
rules: {
|
|
138
131
|
...jsdocRules
|
|
139
132
|
}
|
|
140
133
|
});
|
|
141
|
-
const eslintConfig =
|
|
142
|
-
|
|
134
|
+
const eslintConfig = config(...eslintConfigNoJSDoc, ...JSDocRule);
|
|
135
|
+
export { eslintConfigNoJSDoc, eslintConfig };
|
package/dist/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@changesets/cli": "^2.27.1",
|
|
47
47
|
"@eslint-types/jsdoc": "^48.2.2",
|
|
48
48
|
"@eslint-types/typescript-eslint": "^7.5.0",
|
|
49
|
+
"@robot-inventor/tsconfig-base": "^1.0.0",
|
|
49
50
|
"@types/eslint__eslintrc": "^2.1.2",
|
|
50
51
|
"eslint": "^9.9.0",
|
|
51
52
|
"jiti": "^1.21.6",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robot-inventor/eslint-config",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "My ESLint config preset",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@changesets/cli": "^2.27.1",
|
|
58
58
|
"@eslint-types/jsdoc": "^48.2.2",
|
|
59
59
|
"@eslint-types/typescript-eslint": "^7.5.0",
|
|
60
|
+
"@robot-inventor/tsconfig-base": "^1.0.0",
|
|
60
61
|
"@types/eslint__eslintrc": "^2.1.2",
|
|
61
62
|
"eslint": "^9.9.0",
|
|
62
63
|
"jiti": "^1.21.6",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const typescript_eslint_1 = require("typescript-eslint");
|
|
4
|
-
const index_js_1 = require("./src/index.js");
|
|
5
|
-
const overrides = {
|
|
6
|
-
rules: {
|
|
7
|
-
"sort-keys": "off"
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
exports.default = (0, typescript_eslint_1.config)(...index_js_1.eslintConfig, overrides);
|
package/dist/cjs/src/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|