@ririd/eslint-config 1.0.0-beta.1 → 1.0.1
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 +32 -2
- package/dist/index.js +30 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -36,7 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(src_exports);
|
|
37
37
|
|
|
38
38
|
// src/factory.ts
|
|
39
|
-
var
|
|
39
|
+
var import_eslint_config4 = __toESM(require("@antfu/eslint-config"), 1);
|
|
40
40
|
|
|
41
41
|
// src/configs/all.ts
|
|
42
42
|
async function all() {
|
|
@@ -123,6 +123,34 @@ async function next() {
|
|
|
123
123
|
];
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
// src/configs/markdown.ts
|
|
127
|
+
var import_eslint_config3 = require("@antfu/eslint-config");
|
|
128
|
+
async function markdown() {
|
|
129
|
+
return [
|
|
130
|
+
{
|
|
131
|
+
name: "ririd:markdown",
|
|
132
|
+
files: [import_eslint_config3.GLOB_MARKDOWN_CODE],
|
|
133
|
+
rules: {
|
|
134
|
+
"import/no-unresolved": "off",
|
|
135
|
+
"unused-imports/no-unused-imports": "off",
|
|
136
|
+
"unused-imports/no-unused-vars": "off",
|
|
137
|
+
"no-alert": "off",
|
|
138
|
+
"no-console": "off",
|
|
139
|
+
"no-restricted-imports": "off",
|
|
140
|
+
"no-undef": "off",
|
|
141
|
+
"no-unused-expressions": "off",
|
|
142
|
+
"no-unused-vars": "off",
|
|
143
|
+
"antfu/no-cjs-exports": "off",
|
|
144
|
+
"antfu/no-ts-export-equal": "off",
|
|
145
|
+
"ts/no-redeclare": "off",
|
|
146
|
+
"ts/no-unused-vars": "off",
|
|
147
|
+
"ts/no-var-requires": "off",
|
|
148
|
+
"ts/consistent-type-imports": "off"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
|
|
126
154
|
// src/factory.ts
|
|
127
155
|
async function ririd(options = {}, ...userConfigs) {
|
|
128
156
|
const configs = [];
|
|
@@ -137,7 +165,9 @@ async function ririd(options = {}, ...userConfigs) {
|
|
|
137
165
|
configs.push(all());
|
|
138
166
|
if (options.next ?? false)
|
|
139
167
|
configs.push(next());
|
|
140
|
-
|
|
168
|
+
if (options.markdown ?? true)
|
|
169
|
+
configs.push(markdown());
|
|
170
|
+
return (0, import_eslint_config4.default)(
|
|
141
171
|
options,
|
|
142
172
|
...configs,
|
|
143
173
|
...userConfigs
|
package/dist/index.js
CHANGED
|
@@ -86,6 +86,34 @@ async function next() {
|
|
|
86
86
|
];
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
// src/configs/markdown.ts
|
|
90
|
+
import { GLOB_MARKDOWN_CODE } from "@antfu/eslint-config";
|
|
91
|
+
async function markdown() {
|
|
92
|
+
return [
|
|
93
|
+
{
|
|
94
|
+
name: "ririd:markdown",
|
|
95
|
+
files: [GLOB_MARKDOWN_CODE],
|
|
96
|
+
rules: {
|
|
97
|
+
"import/no-unresolved": "off",
|
|
98
|
+
"unused-imports/no-unused-imports": "off",
|
|
99
|
+
"unused-imports/no-unused-vars": "off",
|
|
100
|
+
"no-alert": "off",
|
|
101
|
+
"no-console": "off",
|
|
102
|
+
"no-restricted-imports": "off",
|
|
103
|
+
"no-undef": "off",
|
|
104
|
+
"no-unused-expressions": "off",
|
|
105
|
+
"no-unused-vars": "off",
|
|
106
|
+
"antfu/no-cjs-exports": "off",
|
|
107
|
+
"antfu/no-ts-export-equal": "off",
|
|
108
|
+
"ts/no-redeclare": "off",
|
|
109
|
+
"ts/no-unused-vars": "off",
|
|
110
|
+
"ts/no-var-requires": "off",
|
|
111
|
+
"ts/consistent-type-imports": "off"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
|
|
89
117
|
// src/factory.ts
|
|
90
118
|
async function ririd(options = {}, ...userConfigs) {
|
|
91
119
|
const configs = [];
|
|
@@ -100,6 +128,8 @@ async function ririd(options = {}, ...userConfigs) {
|
|
|
100
128
|
configs.push(all());
|
|
101
129
|
if (options.next ?? false)
|
|
102
130
|
configs.push(next());
|
|
131
|
+
if (options.markdown ?? true)
|
|
132
|
+
configs.push(markdown());
|
|
103
133
|
return antfu(
|
|
104
134
|
options,
|
|
105
135
|
...configs,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ririd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"packageManager": "pnpm@8.12.1",
|
|
6
6
|
"author": "Daydreamer Riri <Daydreamerriri@outloot.com> (https://github.com/Daydreamer-riri/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"import": "./dist/index.js",
|
|
15
|
-
"require": "./dist/index.
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"rimraf": "^5.0.1",
|
|
41
41
|
"tsup": "^8.0.1",
|
|
42
42
|
"typescript": "^5.3.3",
|
|
43
|
-
"@ririd/eslint-config": "1.0.
|
|
43
|
+
"@ririd/eslint-config": "1.0.1"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup src/index.ts --format esm,cjs --clean --dts",
|