@icebreakers/eslint-config 1.3.1 → 1.3.2
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/index.cjs +16 -1505
- package/dist/index.js +18 -6
- package/package.json +2 -2
- package/dist/chunk-TFLCJTEC.js +0 -37
- package/dist/lib-CAK7FNTA.js +0 -1242
package/dist/index.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
4
14
|
|
|
5
15
|
// src/antfu.ts
|
|
6
16
|
var antfu_exports = {};
|
|
@@ -213,11 +223,13 @@ function getPresets(options, mode) {
|
|
|
213
223
|
javascript: {
|
|
214
224
|
overrides: {
|
|
215
225
|
"curly": ["error", "all"],
|
|
216
|
-
"no-console": ["warn"]
|
|
226
|
+
"no-console": ["warn"]
|
|
217
227
|
// 问题在于 auto fix 的时候,会直接 remove 整个 import ,而我们想让用户自己去 remove
|
|
218
228
|
// 'unused-imports/no-unused-imports': 'error',
|
|
219
229
|
// https://typescript-eslint.io/rules/no-unused-vars/
|
|
220
|
-
|
|
230
|
+
// https://github.com/antfu/eslint-config/blob/main/src/configs/javascript.ts
|
|
231
|
+
// 'no-unused-vars': 'error',
|
|
232
|
+
// 'no-undef': 'error',
|
|
221
233
|
// 'prefer-const': 'off',
|
|
222
234
|
}
|
|
223
235
|
}
|
|
@@ -289,7 +301,7 @@ function getPresets(options, mode) {
|
|
|
289
301
|
});
|
|
290
302
|
}
|
|
291
303
|
if (enableMDX) {
|
|
292
|
-
presets.push((0, antfu_exports.interopDefault)(import("
|
|
304
|
+
presets.push((0, antfu_exports.interopDefault)(import("eslint-plugin-mdx")).then((mdx) => {
|
|
293
305
|
return [
|
|
294
306
|
{
|
|
295
307
|
...mdx.flat,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icebreakers/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.2",
|
|
5
5
|
"description": "icebreakers's eslint config",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@antfu/eslint-config": "5.0.0",
|
|
44
44
|
"@eslint-react/eslint-plugin": "^1.52.3",
|
|
45
|
-
"@next/eslint-plugin-next": "^15.4.
|
|
45
|
+
"@next/eslint-plugin-next": "^15.4.5",
|
|
46
46
|
"eslint-plugin-format": "1.0.1",
|
|
47
47
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
48
48
|
"eslint-plugin-react-hooks": "^5.2.0",
|
package/dist/chunk-TFLCJTEC.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
6
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
7
|
-
}) : x)(function(x) {
|
|
8
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
9
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
10
|
-
});
|
|
11
|
-
var __export = (target, all) => {
|
|
12
|
-
for (var name in all)
|
|
13
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
-
};
|
|
15
|
-
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
-
for (let key of __getOwnPropNames(from))
|
|
18
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
24
|
-
|
|
25
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.5.1_postcss@8.5.6_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js
|
|
26
|
-
import path from "path";
|
|
27
|
-
import { fileURLToPath } from "url";
|
|
28
|
-
var getFilename = () => fileURLToPath(import.meta.url);
|
|
29
|
-
var getDirname = () => path.dirname(getFilename());
|
|
30
|
-
var __dirname = /* @__PURE__ */ getDirname();
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
__require,
|
|
34
|
-
__export,
|
|
35
|
-
__reExport,
|
|
36
|
-
__dirname
|
|
37
|
-
};
|