@debbl/eslint-config 1.0.0-beta.5 → 1.0.0-beta.6
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.js +22 -33
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -23,25 +23,21 @@ function resolvePackage(name, options = {}) {
|
|
|
23
23
|
|
|
24
24
|
// src/factory.ts
|
|
25
25
|
import {
|
|
26
|
+
basic,
|
|
26
27
|
comments,
|
|
27
28
|
ignores,
|
|
28
29
|
imports,
|
|
29
30
|
js,
|
|
30
31
|
jsdoc,
|
|
31
|
-
jsonc,
|
|
32
|
-
markdown,
|
|
33
32
|
node,
|
|
34
|
-
|
|
35
|
-
sortTsconfig,
|
|
36
|
-
test,
|
|
37
|
-
unicorn,
|
|
38
|
-
yml
|
|
33
|
+
unicorn
|
|
39
34
|
} from "@debbl/eslint-config-basic";
|
|
40
35
|
import { ts, tsWithLanguageServer } from "@debbl/eslint-config-ts";
|
|
41
36
|
import { vue } from "@debbl/eslint-config-vue";
|
|
42
37
|
import { react } from "@debbl/eslint-config-react";
|
|
43
38
|
import { solid } from "@debbl/eslint-config-solid";
|
|
44
39
|
import { tailwindcss } from "@debbl/eslint-config-tailwindcss";
|
|
40
|
+
import { prettier } from "@debbl/eslint-config-prettier";
|
|
45
41
|
|
|
46
42
|
// ../../src/globs.ts
|
|
47
43
|
var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
@@ -87,6 +83,7 @@ function config(options = {}, ...userConfigs) {
|
|
|
87
83
|
componentExts.push("solid");
|
|
88
84
|
if (enableTailwindcss)
|
|
89
85
|
componentExts.push("tailwindcss");
|
|
86
|
+
configs.push(basic(options));
|
|
90
87
|
if (enableTypeScript) {
|
|
91
88
|
configs.push(ts({ componentExts }));
|
|
92
89
|
if (typeof enableTypeScript !== "boolean") {
|
|
@@ -98,51 +95,43 @@ function config(options = {}, ...userConfigs) {
|
|
|
98
95
|
);
|
|
99
96
|
}
|
|
100
97
|
}
|
|
101
|
-
if (options.test ?? true)
|
|
102
|
-
configs.push(test({ isInEditor }));
|
|
103
98
|
if (enableVue)
|
|
104
99
|
configs.push(vue({ ts: !!enableTypeScript }));
|
|
105
100
|
if (enableReact)
|
|
106
|
-
configs.push(react());
|
|
101
|
+
configs.push(react({ ts: !enableTypeScript }));
|
|
107
102
|
if (enableSolid)
|
|
108
103
|
configs.push(solid());
|
|
109
104
|
if (enableTailwindcss)
|
|
110
105
|
configs.push(tailwindcss());
|
|
111
|
-
|
|
112
|
-
configs.push(jsonc, sortPackageJson, sortTsconfig);
|
|
113
|
-
}
|
|
114
|
-
if (options.yaml ?? true)
|
|
115
|
-
configs.push(yml);
|
|
116
|
-
if (options.markdown ?? true)
|
|
117
|
-
configs.push(markdown({ componentExts }));
|
|
106
|
+
configs.push(prettier());
|
|
118
107
|
return combine(...configs, ...userConfigs);
|
|
119
108
|
}
|
|
120
109
|
|
|
121
110
|
// src/index.ts
|
|
122
111
|
import {
|
|
123
|
-
basic,
|
|
112
|
+
basic as basic2,
|
|
124
113
|
comments as comments2,
|
|
125
114
|
ignores as ignores2,
|
|
126
115
|
imports as imports2,
|
|
127
116
|
js as js2,
|
|
128
117
|
jsdoc as jsdoc2,
|
|
129
|
-
jsonc
|
|
130
|
-
markdown
|
|
118
|
+
jsonc,
|
|
119
|
+
markdown,
|
|
131
120
|
node as node2,
|
|
132
|
-
sortPackageJson
|
|
133
|
-
sortTsconfig
|
|
134
|
-
test
|
|
121
|
+
sortPackageJson,
|
|
122
|
+
sortTsconfig,
|
|
123
|
+
test,
|
|
135
124
|
unicorn as unicorn2,
|
|
136
|
-
yml
|
|
125
|
+
yml
|
|
137
126
|
} from "@debbl/eslint-config-basic";
|
|
138
127
|
import { ts as ts2, tsWithLanguageServer as tsWithLanguageServer2 } from "@debbl/eslint-config-ts";
|
|
139
|
-
import { prettier } from "@debbl/eslint-config-prettier";
|
|
128
|
+
import { prettier as prettier2 } from "@debbl/eslint-config-prettier";
|
|
140
129
|
import { vue as vue2 } from "@debbl/eslint-config-vue";
|
|
141
130
|
import { solid as solid2 } from "@debbl/eslint-config-solid";
|
|
142
131
|
import { react as react2 } from "@debbl/eslint-config-react";
|
|
143
132
|
var src_default = config;
|
|
144
133
|
export {
|
|
145
|
-
basic,
|
|
134
|
+
basic2 as basic,
|
|
146
135
|
comments2 as comments,
|
|
147
136
|
config,
|
|
148
137
|
src_default as default,
|
|
@@ -150,18 +139,18 @@ export {
|
|
|
150
139
|
imports2 as imports,
|
|
151
140
|
js2 as js,
|
|
152
141
|
jsdoc2 as jsdoc,
|
|
153
|
-
|
|
154
|
-
|
|
142
|
+
jsonc,
|
|
143
|
+
markdown,
|
|
155
144
|
node2 as node,
|
|
156
|
-
prettier,
|
|
145
|
+
prettier2 as prettier,
|
|
157
146
|
react2 as react,
|
|
158
147
|
solid2 as solid,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
148
|
+
sortPackageJson,
|
|
149
|
+
sortTsconfig,
|
|
150
|
+
test,
|
|
162
151
|
ts2 as ts,
|
|
163
152
|
tsWithLanguageServer2 as tsWithLanguageServer,
|
|
164
153
|
unicorn2 as unicorn,
|
|
165
154
|
vue2 as vue,
|
|
166
|
-
|
|
155
|
+
yml
|
|
167
156
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debbl/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.6",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"eslint": ">=8.24.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@debbl/eslint-config-
|
|
21
|
-
"@debbl/eslint-config-
|
|
22
|
-
"@debbl/eslint-config-
|
|
23
|
-
"@debbl/eslint-config-
|
|
24
|
-
"@debbl/eslint-config-
|
|
25
|
-
"@debbl/eslint-config-
|
|
26
|
-
"@debbl/eslint-config-
|
|
20
|
+
"@debbl/eslint-config-prettier": "1.0.0-beta.6",
|
|
21
|
+
"@debbl/eslint-config-solid": "1.0.0-beta.6",
|
|
22
|
+
"@debbl/eslint-config-react": "1.0.0-beta.6",
|
|
23
|
+
"@debbl/eslint-config-basic": "1.0.0-beta.6",
|
|
24
|
+
"@debbl/eslint-config-tailwindcss": "1.0.0-beta.6",
|
|
25
|
+
"@debbl/eslint-config-ts": "1.0.0-beta.6",
|
|
26
|
+
"@debbl/eslint-config-vue": "1.0.0-beta.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"eslint": "^8.50.0"
|