@robot-inventor/eslint-config 4.0.3 → 4.0.4
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 +2 -2
- package/dist/cjs/index.js +19 -12
- package/dist/cjs/package.json +2 -2
- package/dist/esm/package.json +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const eslintConfigNoJSDoc: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
2
|
-
declare const eslintConfig: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
1
|
+
declare const eslintConfigNoJSDoc: import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.ConfigArray;
|
|
2
|
+
declare const eslintConfig: import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.ConfigArray;
|
|
3
3
|
export { eslintConfigNoJSDoc, eslintConfig };
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.eslintConfig = exports.eslintConfigNoJSDoc = void 0;
|
|
7
|
+
const typescript_eslint_1 = require("typescript-eslint");
|
|
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();
|
|
8
14
|
const eslintRules = {
|
|
9
15
|
"array-element-newline": ["error", "consistent"],
|
|
10
16
|
curly: ["error", "multi-line"],
|
|
@@ -102,14 +108,14 @@ const jsdocRules = {
|
|
|
102
108
|
}
|
|
103
109
|
]
|
|
104
110
|
};
|
|
105
|
-
const eslintConfigNoJSDoc = config(
|
|
111
|
+
const eslintConfigNoJSDoc = (0, typescript_eslint_1.config)(js_1.default.configs.all, eslint_plugin_jsdoc_1.default.configs["flat/recommended-typescript-error"], eslint_config_prettier_1.default, ...typescript_eslint_1.configs.strictTypeChecked, ...typescript_eslint_1.configs.stylisticTypeChecked, ...compat.config(eslint_plugin_import_x_1.default.configs.recommended), eslint_plugin_import_x_1.default.configs.typescript, {
|
|
106
112
|
languageOptions: {
|
|
107
113
|
parserOptions: {
|
|
108
114
|
projectService: true
|
|
109
115
|
}
|
|
110
116
|
},
|
|
111
117
|
plugins: {
|
|
112
|
-
jsdoc
|
|
118
|
+
jsdoc: eslint_plugin_jsdoc_1.default
|
|
113
119
|
},
|
|
114
120
|
linterOptions: {
|
|
115
121
|
reportUnusedDisableDirectives: "error"
|
|
@@ -126,10 +132,11 @@ const eslintConfigNoJSDoc = config(eslint.configs.all, jsdoc.configs["flat/recom
|
|
|
126
132
|
...importXRules
|
|
127
133
|
}
|
|
128
134
|
});
|
|
129
|
-
|
|
135
|
+
exports.eslintConfigNoJSDoc = eslintConfigNoJSDoc;
|
|
136
|
+
const JSDocRule = (0, typescript_eslint_1.config)({
|
|
130
137
|
rules: {
|
|
131
138
|
...jsdocRules
|
|
132
139
|
}
|
|
133
140
|
});
|
|
134
|
-
const eslintConfig = config(...eslintConfigNoJSDoc, ...JSDocRule);
|
|
135
|
-
|
|
141
|
+
const eslintConfig = (0, typescript_eslint_1.config)(...eslintConfigNoJSDoc, ...JSDocRule);
|
|
142
|
+
exports.eslintConfig = eslintConfig;
|
package/dist/cjs/package.json
CHANGED
package/dist/esm/package.json
CHANGED