@wongxy/eslint-config 0.0.14 → 0.0.16
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/cli.cjs +4 -7
- package/dist/cli.js +4 -7
- package/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +11 -12
package/dist/cli.cjs
CHANGED
|
@@ -46,22 +46,19 @@ var import_parse_gitignore = __toESM(require("parse-gitignore"), 1);
|
|
|
46
46
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
47
47
|
|
|
48
48
|
// package.json
|
|
49
|
-
var version = "0.0.
|
|
49
|
+
var version = "0.0.16";
|
|
50
50
|
var devDependencies = {
|
|
51
|
-
"@
|
|
52
|
-
"@types/eslint": "^8.56.3",
|
|
51
|
+
"@types/eslint": "^8.56.5",
|
|
53
52
|
"@types/prompts": "^2.4.9",
|
|
54
53
|
"@types/yargs": "^17.0.32",
|
|
55
54
|
bumpp: "^9.3.0",
|
|
56
55
|
eslint: "^8.57.0",
|
|
57
|
-
"eslint-
|
|
58
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
59
|
-
"eslint-plugin-react-refresh": "^0.4.5",
|
|
56
|
+
"eslint-flat-config-viewer": "^0.1.11",
|
|
60
57
|
"parse-gitignore": "^2.0.0",
|
|
61
58
|
picocolors: "^1.0.0",
|
|
62
59
|
prompts: "^2.4.2",
|
|
63
60
|
tsup: "^8.0.2",
|
|
64
|
-
typescript: "5.
|
|
61
|
+
typescript: "5.3.3",
|
|
65
62
|
yargs: "^17.7.2"
|
|
66
63
|
};
|
|
67
64
|
|
package/dist/cli.js
CHANGED
|
@@ -17,22 +17,19 @@ import parse from "parse-gitignore";
|
|
|
17
17
|
import c from "picocolors";
|
|
18
18
|
|
|
19
19
|
// package.json
|
|
20
|
-
var version = "0.0.
|
|
20
|
+
var version = "0.0.16";
|
|
21
21
|
var devDependencies = {
|
|
22
|
-
"@
|
|
23
|
-
"@types/eslint": "^8.56.3",
|
|
22
|
+
"@types/eslint": "^8.56.5",
|
|
24
23
|
"@types/prompts": "^2.4.9",
|
|
25
24
|
"@types/yargs": "^17.0.32",
|
|
26
25
|
bumpp: "^9.3.0",
|
|
27
26
|
eslint: "^8.57.0",
|
|
28
|
-
"eslint-
|
|
29
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
30
|
-
"eslint-plugin-react-refresh": "^0.4.5",
|
|
27
|
+
"eslint-flat-config-viewer": "^0.1.11",
|
|
31
28
|
"parse-gitignore": "^2.0.0",
|
|
32
29
|
picocolors: "^1.0.0",
|
|
33
30
|
prompts: "^2.4.2",
|
|
34
31
|
tsup: "^8.0.2",
|
|
35
|
-
typescript: "5.
|
|
32
|
+
typescript: "5.3.3",
|
|
36
33
|
yargs: "^17.7.2"
|
|
37
34
|
};
|
|
38
35
|
|
package/dist/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ function wongxy(options, ...userConfigs) {
|
|
|
30
30
|
const configs = [];
|
|
31
31
|
configs.push(
|
|
32
32
|
{
|
|
33
|
+
name: "wongxy:general",
|
|
33
34
|
rules: {
|
|
34
35
|
"no-console": "off",
|
|
35
36
|
"no-alert": "off",
|
|
@@ -40,6 +41,7 @@ function wongxy(options, ...userConfigs) {
|
|
|
40
41
|
);
|
|
41
42
|
if (options?.vue) {
|
|
42
43
|
configs.push({
|
|
44
|
+
name: "wongxy:vue",
|
|
43
45
|
files: ["**/*.vue"],
|
|
44
46
|
rules: {
|
|
45
47
|
"vue/singleline-html-element-content-newline": "off",
|
|
@@ -53,6 +55,7 @@ function wongxy(options, ...userConfigs) {
|
|
|
53
55
|
}
|
|
54
56
|
if (reactnative) {
|
|
55
57
|
configs.push({
|
|
58
|
+
name: "wongxy:reactnative",
|
|
56
59
|
rules: {
|
|
57
60
|
"ts/no-require-imports": "off",
|
|
58
61
|
"ts/no-use-before-define": "off"
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ function wongxy(options, ...userConfigs) {
|
|
|
6
6
|
const configs = [];
|
|
7
7
|
configs.push(
|
|
8
8
|
{
|
|
9
|
+
name: "wongxy:general",
|
|
9
10
|
rules: {
|
|
10
11
|
"no-console": "off",
|
|
11
12
|
"no-alert": "off",
|
|
@@ -16,6 +17,7 @@ function wongxy(options, ...userConfigs) {
|
|
|
16
17
|
);
|
|
17
18
|
if (options?.vue) {
|
|
18
19
|
configs.push({
|
|
20
|
+
name: "wongxy:vue",
|
|
19
21
|
files: ["**/*.vue"],
|
|
20
22
|
rules: {
|
|
21
23
|
"vue/singleline-html-element-content-newline": "off",
|
|
@@ -29,6 +31,7 @@ function wongxy(options, ...userConfigs) {
|
|
|
29
31
|
}
|
|
30
32
|
if (reactnative) {
|
|
31
33
|
configs.push({
|
|
34
|
+
name: "wongxy:reactnative",
|
|
32
35
|
rules: {
|
|
33
36
|
"ts/no-require-imports": "off",
|
|
34
37
|
"ts/no-use-before-define": "off"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wongxy/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"description": "xiyaowong's eslint config",
|
|
6
6
|
"author": "xiyaowong (https://github.com/xiyaowong)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"bin": {
|
|
16
|
-
"@wongxy/eslint-config": "bin/index.js",
|
|
17
16
|
"eslint-config": "bin/index.js",
|
|
17
|
+
"eslint-config-wongxy": "bin/index.js",
|
|
18
|
+
"wongxy-eslint": "bin/index.js",
|
|
18
19
|
"wongxy-eslint-config": "bin/index.js"
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
@@ -22,32 +23,29 @@
|
|
|
22
23
|
"dist"
|
|
23
24
|
],
|
|
24
25
|
"peerDependencies": {
|
|
25
|
-
"eslint-plugin-react": "
|
|
26
|
-
"eslint-plugin-react-hooks": "
|
|
27
|
-
"eslint-plugin-react-refresh": "
|
|
26
|
+
"eslint-plugin-react": "*",
|
|
27
|
+
"eslint-plugin-react-hooks": "*",
|
|
28
|
+
"eslint-plugin-react-refresh": "*"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@antfu/eslint-config": "
|
|
31
|
+
"@antfu/eslint-config": "^2.7.0",
|
|
31
32
|
"parse-gitignore": "^2.0.0",
|
|
32
33
|
"picocolors": "^1.0.0",
|
|
33
34
|
"prompts": "^2.4.2",
|
|
34
35
|
"yargs": "^17.7.2"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"@types/eslint": "^8.56.3",
|
|
38
|
+
"@types/eslint": "^8.56.5",
|
|
39
39
|
"@types/prompts": "^2.4.9",
|
|
40
40
|
"@types/yargs": "^17.0.32",
|
|
41
41
|
"bumpp": "^9.3.0",
|
|
42
42
|
"eslint": "^8.57.0",
|
|
43
|
-
"eslint-
|
|
44
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
45
|
-
"eslint-plugin-react-refresh": "^0.4.5",
|
|
43
|
+
"eslint-flat-config-viewer": "^0.1.11",
|
|
46
44
|
"parse-gitignore": "^2.0.0",
|
|
47
45
|
"picocolors": "^1.0.0",
|
|
48
46
|
"prompts": "^2.4.2",
|
|
49
47
|
"tsup": "^8.0.2",
|
|
50
|
-
"typescript": "5.
|
|
48
|
+
"typescript": "5.3.3",
|
|
51
49
|
"yargs": "^17.7.2"
|
|
52
50
|
},
|
|
53
51
|
"scripts": {
|
|
@@ -57,6 +55,7 @@
|
|
|
57
55
|
"lint": "pnpm run stub && eslint .",
|
|
58
56
|
"lint:fix": "pnpm run stub && eslint . --fix",
|
|
59
57
|
"release": "bumpp && pnpm publish",
|
|
58
|
+
"preview": "eslint-flat-config-viewer",
|
|
60
59
|
"typecheck": "tsc --noEmit"
|
|
61
60
|
}
|
|
62
61
|
}
|