@wongxy/eslint-config 0.0.5 → 0.0.7
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 +49 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +24 -0
- package/package.json +9 -3
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.ts
|
|
21
|
+
var eslint_config_exports = {};
|
|
22
|
+
__export(eslint_config_exports, {
|
|
23
|
+
default: () => eslint_config_default,
|
|
24
|
+
wongxy: () => wongxy
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(eslint_config_exports);
|
|
27
|
+
var import_eslint_config = require("@antfu/eslint-config");
|
|
28
|
+
function wongxy(options, ...userConfigs) {
|
|
29
|
+
return (0, import_eslint_config.antfu)(options, {
|
|
30
|
+
rules: {
|
|
31
|
+
"no-console": "off",
|
|
32
|
+
"no-multiple-empty-lines": "warn"
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
files: ["**/*.vue"],
|
|
36
|
+
rules: {
|
|
37
|
+
"vue/singleline-html-element-content-newline": "off",
|
|
38
|
+
"vue/valid-template-root": "off",
|
|
39
|
+
"vue/block-order": ["warn", {
|
|
40
|
+
order: [["script", "template"], "style"]
|
|
41
|
+
}]
|
|
42
|
+
}
|
|
43
|
+
}, ...userConfigs);
|
|
44
|
+
}
|
|
45
|
+
var eslint_config_default = wongxy;
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
wongxy
|
|
49
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OptionsConfig, FlatConfigItem, Awaitable, UserConfigItem } from '@antfu/eslint-config';
|
|
2
|
+
|
|
3
|
+
declare function wongxy(options?: OptionsConfig & FlatConfigItem, ...userConfigs: Awaitable<UserConfigItem | UserConfigItem[]>[]): Promise<UserConfigItem[]>;
|
|
4
|
+
|
|
5
|
+
export { wongxy as default, wongxy };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OptionsConfig, FlatConfigItem, Awaitable, UserConfigItem } from '@antfu/eslint-config';
|
|
2
|
+
|
|
3
|
+
declare function wongxy(options?: OptionsConfig & FlatConfigItem, ...userConfigs: Awaitable<UserConfigItem | UserConfigItem[]>[]): Promise<UserConfigItem[]>;
|
|
4
|
+
|
|
5
|
+
export { wongxy as default, wongxy };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// index.ts
|
|
2
|
+
import { antfu } from "@antfu/eslint-config";
|
|
3
|
+
function wongxy(options, ...userConfigs) {
|
|
4
|
+
return antfu(options, {
|
|
5
|
+
rules: {
|
|
6
|
+
"no-console": "off",
|
|
7
|
+
"no-multiple-empty-lines": "warn"
|
|
8
|
+
}
|
|
9
|
+
}, {
|
|
10
|
+
files: ["**/*.vue"],
|
|
11
|
+
rules: {
|
|
12
|
+
"vue/singleline-html-element-content-newline": "off",
|
|
13
|
+
"vue/valid-template-root": "off",
|
|
14
|
+
"vue/block-order": ["warn", {
|
|
15
|
+
order: [["script", "template"], "style"]
|
|
16
|
+
}]
|
|
17
|
+
}
|
|
18
|
+
}, ...userConfigs);
|
|
19
|
+
}
|
|
20
|
+
var eslint_config_default = wongxy;
|
|
21
|
+
export {
|
|
22
|
+
eslint_config_default as default,
|
|
23
|
+
wongxy
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wongxy/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"description": "xiyaowong's eslint config",
|
|
6
6
|
"author": "xiyaowong (https://github.com/xiyaowong)",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"main": "dist/index.js",
|
|
9
15
|
"files": [
|
|
10
|
-
"
|
|
16
|
+
"dist"
|
|
11
17
|
],
|
|
12
18
|
"dependencies": {
|
|
13
19
|
"@antfu/eslint-config": "^2.1.0"
|