@debbl/eslint-config 3.1.4 → 3.1.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.cjs +30 -30
- package/dist/index.d.cts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +30 -30
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -80,6 +80,36 @@ __export(src_exports, {
|
|
|
80
80
|
});
|
|
81
81
|
module.exports = __toCommonJS(src_exports);
|
|
82
82
|
|
|
83
|
+
// src/utils.ts
|
|
84
|
+
var parserPlain = {
|
|
85
|
+
meta: {
|
|
86
|
+
name: "parser-plain"
|
|
87
|
+
},
|
|
88
|
+
parseForESLint: (code) => ({
|
|
89
|
+
ast: {
|
|
90
|
+
body: [],
|
|
91
|
+
comments: [],
|
|
92
|
+
loc: { end: code.length, start: 0 },
|
|
93
|
+
range: [0, code.length],
|
|
94
|
+
tokens: [],
|
|
95
|
+
type: "Program"
|
|
96
|
+
},
|
|
97
|
+
scopeManager: null,
|
|
98
|
+
services: { isPlain: true },
|
|
99
|
+
visitorKeys: {
|
|
100
|
+
Program: []
|
|
101
|
+
}
|
|
102
|
+
})
|
|
103
|
+
};
|
|
104
|
+
async function combine(...configs) {
|
|
105
|
+
const resolved = await Promise.all(configs);
|
|
106
|
+
return resolved.flat();
|
|
107
|
+
}
|
|
108
|
+
async function interopDefault(m) {
|
|
109
|
+
const resolved = await m;
|
|
110
|
+
return resolved.default || resolved;
|
|
111
|
+
}
|
|
112
|
+
|
|
83
113
|
// src/configs/comments.ts
|
|
84
114
|
async function comments() {
|
|
85
115
|
const pluginComments = await interopDefault(
|
|
@@ -201,36 +231,6 @@ var ignores = async (options) => {
|
|
|
201
231
|
];
|
|
202
232
|
};
|
|
203
233
|
|
|
204
|
-
// src/utils.ts
|
|
205
|
-
var parserPlain = {
|
|
206
|
-
meta: {
|
|
207
|
-
name: "parser-plain"
|
|
208
|
-
},
|
|
209
|
-
parseForESLint: (code) => ({
|
|
210
|
-
ast: {
|
|
211
|
-
body: [],
|
|
212
|
-
comments: [],
|
|
213
|
-
loc: { end: code.length, start: 0 },
|
|
214
|
-
range: [0, code.length],
|
|
215
|
-
tokens: [],
|
|
216
|
-
type: "Program"
|
|
217
|
-
},
|
|
218
|
-
scopeManager: null,
|
|
219
|
-
services: { isPlain: true },
|
|
220
|
-
visitorKeys: {
|
|
221
|
-
Program: []
|
|
222
|
-
}
|
|
223
|
-
})
|
|
224
|
-
};
|
|
225
|
-
async function combine(...configs) {
|
|
226
|
-
const resolved = await Promise.all(configs);
|
|
227
|
-
return resolved.flat();
|
|
228
|
-
}
|
|
229
|
-
async function interopDefault(m) {
|
|
230
|
-
const resolved = await m;
|
|
231
|
-
return resolved.default || resolved;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
234
|
// src/configs/imports.ts
|
|
235
235
|
async function imports() {
|
|
236
236
|
const pluginImport = await interopDefault(import("eslint-plugin-import-x"));
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ParserOptions } from '@typescript-eslint/parser';
|
|
2
|
-
import {
|
|
2
|
+
import { Linter } from 'eslint';
|
|
3
3
|
import { RequiredOptions } from 'prettier';
|
|
4
4
|
|
|
5
5
|
type ReactConfig = (options: {
|
|
@@ -76,11 +76,7 @@ declare const prettier: PrettierConfig;
|
|
|
76
76
|
|
|
77
77
|
type Awaitable<T> = T | Promise<T>;
|
|
78
78
|
type GetConfigOption<T extends (...args: any) => any> = Parameters<T>[0];
|
|
79
|
-
interface ConfigItem extends
|
|
80
|
-
/**
|
|
81
|
-
* Custom name of each config item
|
|
82
|
-
*/
|
|
83
|
-
name?: string;
|
|
79
|
+
interface ConfigItem extends Linter.FlatConfig {
|
|
84
80
|
/**
|
|
85
81
|
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
86
82
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ParserOptions } from '@typescript-eslint/parser';
|
|
2
|
-
import {
|
|
2
|
+
import { Linter } from 'eslint';
|
|
3
3
|
import { RequiredOptions } from 'prettier';
|
|
4
4
|
|
|
5
5
|
type ReactConfig = (options: {
|
|
@@ -76,11 +76,7 @@ declare const prettier: PrettierConfig;
|
|
|
76
76
|
|
|
77
77
|
type Awaitable<T> = T | Promise<T>;
|
|
78
78
|
type GetConfigOption<T extends (...args: any) => any> = Parameters<T>[0];
|
|
79
|
-
interface ConfigItem extends
|
|
80
|
-
/**
|
|
81
|
-
* Custom name of each config item
|
|
82
|
-
*/
|
|
83
|
-
name?: string;
|
|
79
|
+
interface ConfigItem extends Linter.FlatConfig {
|
|
84
80
|
/**
|
|
85
81
|
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
86
82
|
*
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
// src/utils.ts
|
|
2
|
+
var parserPlain = {
|
|
3
|
+
meta: {
|
|
4
|
+
name: "parser-plain"
|
|
5
|
+
},
|
|
6
|
+
parseForESLint: (code) => ({
|
|
7
|
+
ast: {
|
|
8
|
+
body: [],
|
|
9
|
+
comments: [],
|
|
10
|
+
loc: { end: code.length, start: 0 },
|
|
11
|
+
range: [0, code.length],
|
|
12
|
+
tokens: [],
|
|
13
|
+
type: "Program"
|
|
14
|
+
},
|
|
15
|
+
scopeManager: null,
|
|
16
|
+
services: { isPlain: true },
|
|
17
|
+
visitorKeys: {
|
|
18
|
+
Program: []
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
};
|
|
22
|
+
async function combine(...configs) {
|
|
23
|
+
const resolved = await Promise.all(configs);
|
|
24
|
+
return resolved.flat();
|
|
25
|
+
}
|
|
26
|
+
async function interopDefault(m) {
|
|
27
|
+
const resolved = await m;
|
|
28
|
+
return resolved.default || resolved;
|
|
29
|
+
}
|
|
30
|
+
|
|
1
31
|
// src/configs/comments.ts
|
|
2
32
|
async function comments() {
|
|
3
33
|
const pluginComments = await interopDefault(
|
|
@@ -119,36 +149,6 @@ var ignores = async (options) => {
|
|
|
119
149
|
];
|
|
120
150
|
};
|
|
121
151
|
|
|
122
|
-
// src/utils.ts
|
|
123
|
-
var parserPlain = {
|
|
124
|
-
meta: {
|
|
125
|
-
name: "parser-plain"
|
|
126
|
-
},
|
|
127
|
-
parseForESLint: (code) => ({
|
|
128
|
-
ast: {
|
|
129
|
-
body: [],
|
|
130
|
-
comments: [],
|
|
131
|
-
loc: { end: code.length, start: 0 },
|
|
132
|
-
range: [0, code.length],
|
|
133
|
-
tokens: [],
|
|
134
|
-
type: "Program"
|
|
135
|
-
},
|
|
136
|
-
scopeManager: null,
|
|
137
|
-
services: { isPlain: true },
|
|
138
|
-
visitorKeys: {
|
|
139
|
-
Program: []
|
|
140
|
-
}
|
|
141
|
-
})
|
|
142
|
-
};
|
|
143
|
-
async function combine(...configs) {
|
|
144
|
-
const resolved = await Promise.all(configs);
|
|
145
|
-
return resolved.flat();
|
|
146
|
-
}
|
|
147
|
-
async function interopDefault(m) {
|
|
148
|
-
const resolved = await m;
|
|
149
|
-
return resolved.default || resolved;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
152
|
// src/configs/imports.ts
|
|
153
153
|
async function imports() {
|
|
154
154
|
const pluginImport = await interopDefault(import("eslint-plugin-import-x"));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debbl/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.6",
|
|
5
5
|
"description": "Brendan Dash's ESLint config",
|
|
6
6
|
"author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
37
37
|
"@typescript-eslint/parser": "^7.8.0",
|
|
38
38
|
"eslint-config-prettier": "^9.1.0",
|
|
39
|
-
"eslint-define-config": "^2.1.0",
|
|
40
39
|
"eslint-mdx": "^3.1.5",
|
|
41
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
42
41
|
"eslint-plugin-import-x": "^0.5.0",
|
|
@@ -71,6 +70,7 @@
|
|
|
71
70
|
"@types/react": "^18.3.1",
|
|
72
71
|
"bumpp": "^9.4.1",
|
|
73
72
|
"eslint": "^8.57.0",
|
|
73
|
+
"eslint-plugin-tailwindcss": "^3.15.1",
|
|
74
74
|
"execa": "^8.0.1",
|
|
75
75
|
"fast-glob": "^3.3.2",
|
|
76
76
|
"fs-extra": "^11.2.0",
|