@debbl/eslint-config 3.8.5 → 3.8.8
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/README.md +7 -108
- package/dist/chunk-VCB7MQKB.js +60 -0
- package/dist/index.cjs +8916 -56
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.es2015-7TBD5FJT.js +8781 -0
- package/dist/index.js +42 -6
- package/package.json +15 -21
package/README.md
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://npmjs.com/package/@debbl/eslint-config)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Credits
|
|
6
6
|
|
|
7
7
|
> https://github.com/antfu/eslint-config
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
pnpm i eslint @debbl/eslint-config -D
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Config `eslint.config.js`
|
|
16
16
|
|
|
17
|
-
###
|
|
17
|
+
### Default config
|
|
18
18
|
|
|
19
19
|
- ignores
|
|
20
20
|
- javascript
|
|
@@ -37,7 +37,7 @@ import { defineConfig } from "@debbl/eslint-config";
|
|
|
37
37
|
export default defineConfig();
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
##
|
|
40
|
+
## Config `Prettier`, will override default rules
|
|
41
41
|
|
|
42
42
|
```js
|
|
43
43
|
import { defineConfig } from "@debbl/eslint-config";
|
|
@@ -50,107 +50,6 @@ export default defineConfig({
|
|
|
50
50
|
});
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## Full OptionConfig
|
|
54
54
|
|
|
55
|
-
[types.ts](./src/types.ts#
|
|
56
|
-
|
|
57
|
-
```ts
|
|
58
|
-
export interface OptionsConfig extends OptionsComponentExts {
|
|
59
|
-
/**
|
|
60
|
-
* Enable gitignore support.
|
|
61
|
-
* Passing an object to configure the options.
|
|
62
|
-
* @default true
|
|
63
|
-
*/
|
|
64
|
-
ignores?: boolean | GetConfigOption<IgnoresConfig>;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Enable JavaScript support.
|
|
68
|
-
* Passing an object to configure the options.
|
|
69
|
-
* @default true
|
|
70
|
-
*/
|
|
71
|
-
javascript?: GetConfigOption<JavascriptConfig>;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Enable TypeScript support.
|
|
75
|
-
*
|
|
76
|
-
* Passing an object to enable TypeScript Language Server support.
|
|
77
|
-
*
|
|
78
|
-
* @default false
|
|
79
|
-
*/
|
|
80
|
-
typescript?: boolean | GetConfigOption<TypeScriptConfig>;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Enable test support.
|
|
84
|
-
*
|
|
85
|
-
* @default true
|
|
86
|
-
*/
|
|
87
|
-
test?: boolean | GetConfigOption<TestConfig>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Enable Vue support.
|
|
91
|
-
*
|
|
92
|
-
* @default false
|
|
93
|
-
*/
|
|
94
|
-
vue?: boolean | GetConfigOption<VueConfig>;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Enable React support, Passing an object to enable Next.js support.
|
|
98
|
-
*
|
|
99
|
-
* @default false
|
|
100
|
-
*/
|
|
101
|
-
react?: boolean | GetConfigOption<ReactConfig>;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Enable solid support, Passing an object to enable Next.js support.
|
|
105
|
-
*
|
|
106
|
-
* @default false
|
|
107
|
-
*/
|
|
108
|
-
solid?: boolean;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Enable JSONC support.
|
|
112
|
-
*
|
|
113
|
-
* @default true
|
|
114
|
-
*/
|
|
115
|
-
jsonc?: boolean | GetConfigOption<JsoncConfig>;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Enable YML support.
|
|
119
|
-
*
|
|
120
|
-
* @default true
|
|
121
|
-
*/
|
|
122
|
-
yml?: boolean | GetConfigOption<YmlConfig>;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Enable TOML support.
|
|
126
|
-
* @default true
|
|
127
|
-
*/
|
|
128
|
-
toml?: boolean | GetConfigOption<TomlConfig>;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Enable Markdown support.
|
|
132
|
-
*
|
|
133
|
-
* @default true
|
|
134
|
-
*/
|
|
135
|
-
markdown?: boolean | GetConfigOption<MarkdownConfig>;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Enable prettier rules.
|
|
139
|
-
*
|
|
140
|
-
* @default true
|
|
141
|
-
*/
|
|
142
|
-
prettier?: boolean | Omit<GetConfigOption<PrettierConfig>, "tailwindcss">;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Enable Tailwind CSS support.
|
|
146
|
-
* if set to "prettier", it will use `prettier-plugin-tailwindcss` @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss
|
|
147
|
-
* @default false
|
|
148
|
-
*/
|
|
149
|
-
tailwindcss?: boolean | "prettier";
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Custom config
|
|
153
|
-
*/
|
|
154
|
-
customConfig?: ConfigItem[] | ConfigItem;
|
|
155
|
-
}
|
|
156
|
-
```
|
|
55
|
+
[types.ts](./src/types.ts#L65)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __esm = (fn, res) => function __init() {
|
|
14
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
15
|
+
};
|
|
16
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
17
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
|
+
};
|
|
19
|
+
var __export = (target, all) => {
|
|
20
|
+
for (var name in all)
|
|
21
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
22
|
+
};
|
|
23
|
+
var __copyProps = (to, from, except, desc) => {
|
|
24
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
25
|
+
for (let key of __getOwnPropNames(from))
|
|
26
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
27
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
28
|
+
}
|
|
29
|
+
return to;
|
|
30
|
+
};
|
|
31
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
32
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
33
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
34
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
35
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
36
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
37
|
+
mod
|
|
38
|
+
));
|
|
39
|
+
|
|
40
|
+
// node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_typescript@5.7.2_yaml@2.6.1/node_modules/tsup/assets/esm_shims.js
|
|
41
|
+
import { fileURLToPath } from "url";
|
|
42
|
+
import path from "path";
|
|
43
|
+
var getFilename, getDirname, __dirname;
|
|
44
|
+
var init_esm_shims = __esm({
|
|
45
|
+
"node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_typescript@5.7.2_yaml@2.6.1/node_modules/tsup/assets/esm_shims.js"() {
|
|
46
|
+
"use strict";
|
|
47
|
+
getFilename = () => fileURLToPath(import.meta.url);
|
|
48
|
+
getDirname = () => path.dirname(getFilename());
|
|
49
|
+
__dirname = /* @__PURE__ */ getDirname();
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export {
|
|
54
|
+
__require,
|
|
55
|
+
__commonJS,
|
|
56
|
+
__export,
|
|
57
|
+
__toESM,
|
|
58
|
+
__dirname,
|
|
59
|
+
init_esm_shims
|
|
60
|
+
};
|