@ririd/eslint-config 1.4.0 → 2.0.0
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 -32
- package/dist/index.js +30 -30
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -29,12 +29,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
30
|
|
|
31
31
|
// src/index.ts
|
|
32
|
-
var
|
|
33
|
-
__export(
|
|
34
|
-
default: () =>
|
|
32
|
+
var index_exports = {};
|
|
33
|
+
__export(index_exports, {
|
|
34
|
+
default: () => index_default,
|
|
35
35
|
ririd: () => ririd
|
|
36
36
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
37
|
+
module.exports = __toCommonJS(index_exports);
|
|
38
38
|
|
|
39
39
|
// src/factory.ts
|
|
40
40
|
var import_eslint_config4 = require("@antfu/eslint-config");
|
|
@@ -100,17 +100,29 @@ async function all() {
|
|
|
100
100
|
];
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
// src/configs/
|
|
103
|
+
// src/configs/markdown.ts
|
|
104
104
|
var import_eslint_config = require("@antfu/eslint-config");
|
|
105
|
-
async function
|
|
105
|
+
async function markdown() {
|
|
106
106
|
return [
|
|
107
107
|
{
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
name: "ririd:markdown",
|
|
109
|
+
files: [import_eslint_config.GLOB_MARKDOWN_CODE],
|
|
110
110
|
rules: {
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
111
|
+
"import/no-unresolved": "off",
|
|
112
|
+
"unused-imports/no-unused-imports": "off",
|
|
113
|
+
"unused-imports/no-unused-vars": "off",
|
|
114
|
+
"no-alert": "off",
|
|
115
|
+
"no-console": "off",
|
|
116
|
+
"no-restricted-imports": "off",
|
|
117
|
+
"no-undef": "off",
|
|
118
|
+
"no-unused-expressions": "off",
|
|
119
|
+
"no-unused-vars": "off",
|
|
120
|
+
"antfu/no-cjs-exports": "off",
|
|
121
|
+
"antfu/no-ts-export-equal": "off",
|
|
122
|
+
"ts/no-redeclare": "off",
|
|
123
|
+
"ts/no-unused-vars": "off",
|
|
124
|
+
"ts/no-var-requires": "off",
|
|
125
|
+
"ts/consistent-type-imports": "off"
|
|
114
126
|
}
|
|
115
127
|
}
|
|
116
128
|
];
|
|
@@ -152,29 +164,17 @@ async function next() {
|
|
|
152
164
|
];
|
|
153
165
|
}
|
|
154
166
|
|
|
155
|
-
// src/configs/
|
|
167
|
+
// src/configs/react.ts
|
|
156
168
|
var import_eslint_config3 = require("@antfu/eslint-config");
|
|
157
|
-
async function
|
|
169
|
+
async function react() {
|
|
158
170
|
return [
|
|
159
171
|
{
|
|
160
|
-
|
|
161
|
-
|
|
172
|
+
files: [import_eslint_config3.GLOB_JSX, import_eslint_config3.GLOB_TSX],
|
|
173
|
+
name: "ririd:react",
|
|
162
174
|
rules: {
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"no-alert": "off",
|
|
167
|
-
"no-console": "off",
|
|
168
|
-
"no-restricted-imports": "off",
|
|
169
|
-
"no-undef": "off",
|
|
170
|
-
"no-unused-expressions": "off",
|
|
171
|
-
"no-unused-vars": "off",
|
|
172
|
-
"antfu/no-cjs-exports": "off",
|
|
173
|
-
"antfu/no-ts-export-equal": "off",
|
|
174
|
-
"ts/no-redeclare": "off",
|
|
175
|
-
"ts/no-unused-vars": "off",
|
|
176
|
-
"ts/no-var-requires": "off",
|
|
177
|
-
"ts/consistent-type-imports": "off"
|
|
175
|
+
"react-refresh/only-export-components": "off",
|
|
176
|
+
"react/no-clone-element": "off",
|
|
177
|
+
"react/no-missing-component-display-name": "off"
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
];
|
|
@@ -204,8 +204,8 @@ function ririd(options = {}, ...userConfigs) {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
// src/index.ts
|
|
207
|
-
__reExport(
|
|
208
|
-
var
|
|
207
|
+
__reExport(index_exports, require("@antfu/eslint-config"), module.exports);
|
|
208
|
+
var index_default = ririd;
|
|
209
209
|
// Annotate the CommonJS export names for ESM import in node:
|
|
210
210
|
0 && (module.exports = {
|
|
211
211
|
ririd,
|
package/dist/index.js
CHANGED
|
@@ -62,17 +62,29 @@ async function all() {
|
|
|
62
62
|
];
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
// src/configs/
|
|
66
|
-
import {
|
|
67
|
-
async function
|
|
65
|
+
// src/configs/markdown.ts
|
|
66
|
+
import { GLOB_MARKDOWN_CODE } from "@antfu/eslint-config";
|
|
67
|
+
async function markdown() {
|
|
68
68
|
return [
|
|
69
69
|
{
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
name: "ririd:markdown",
|
|
71
|
+
files: [GLOB_MARKDOWN_CODE],
|
|
72
72
|
rules: {
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
73
|
+
"import/no-unresolved": "off",
|
|
74
|
+
"unused-imports/no-unused-imports": "off",
|
|
75
|
+
"unused-imports/no-unused-vars": "off",
|
|
76
|
+
"no-alert": "off",
|
|
77
|
+
"no-console": "off",
|
|
78
|
+
"no-restricted-imports": "off",
|
|
79
|
+
"no-undef": "off",
|
|
80
|
+
"no-unused-expressions": "off",
|
|
81
|
+
"no-unused-vars": "off",
|
|
82
|
+
"antfu/no-cjs-exports": "off",
|
|
83
|
+
"antfu/no-ts-export-equal": "off",
|
|
84
|
+
"ts/no-redeclare": "off",
|
|
85
|
+
"ts/no-unused-vars": "off",
|
|
86
|
+
"ts/no-var-requires": "off",
|
|
87
|
+
"ts/consistent-type-imports": "off"
|
|
76
88
|
}
|
|
77
89
|
}
|
|
78
90
|
];
|
|
@@ -114,29 +126,17 @@ async function next() {
|
|
|
114
126
|
];
|
|
115
127
|
}
|
|
116
128
|
|
|
117
|
-
// src/configs/
|
|
118
|
-
import {
|
|
119
|
-
async function
|
|
129
|
+
// src/configs/react.ts
|
|
130
|
+
import { GLOB_JSX, GLOB_TSX } from "@antfu/eslint-config";
|
|
131
|
+
async function react() {
|
|
120
132
|
return [
|
|
121
133
|
{
|
|
122
|
-
|
|
123
|
-
|
|
134
|
+
files: [GLOB_JSX, GLOB_TSX],
|
|
135
|
+
name: "ririd:react",
|
|
124
136
|
rules: {
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"no-alert": "off",
|
|
129
|
-
"no-console": "off",
|
|
130
|
-
"no-restricted-imports": "off",
|
|
131
|
-
"no-undef": "off",
|
|
132
|
-
"no-unused-expressions": "off",
|
|
133
|
-
"no-unused-vars": "off",
|
|
134
|
-
"antfu/no-cjs-exports": "off",
|
|
135
|
-
"antfu/no-ts-export-equal": "off",
|
|
136
|
-
"ts/no-redeclare": "off",
|
|
137
|
-
"ts/no-unused-vars": "off",
|
|
138
|
-
"ts/no-var-requires": "off",
|
|
139
|
-
"ts/consistent-type-imports": "off"
|
|
137
|
+
"react-refresh/only-export-components": "off",
|
|
138
|
+
"react/no-clone-element": "off",
|
|
139
|
+
"react/no-missing-component-display-name": "off"
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
];
|
|
@@ -167,8 +167,8 @@ function ririd(options = {}, ...userConfigs) {
|
|
|
167
167
|
|
|
168
168
|
// src/index.ts
|
|
169
169
|
export * from "@antfu/eslint-config";
|
|
170
|
-
var
|
|
170
|
+
var index_default = ririd;
|
|
171
171
|
export {
|
|
172
|
-
|
|
172
|
+
index_default as default,
|
|
173
173
|
ririd
|
|
174
174
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ririd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"author": "Daydreamer Riri <Daydreamerriri@outloot.com> (https://github.com/Daydreamer-riri/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/daydreamer-riri/eslint-config",
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
"eslint": ">=8.0.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@antfu/eslint-config": "^3.
|
|
28
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
29
|
-
"@next/eslint-plugin-next": "^
|
|
30
|
-
"eslint-plugin-format": "^0.1
|
|
27
|
+
"@antfu/eslint-config": "^5.3.0",
|
|
28
|
+
"@eslint-react/eslint-plugin": "^1.53.1",
|
|
29
|
+
"@next/eslint-plugin-next": "^15.5.3",
|
|
30
|
+
"eslint-plugin-format": "^1.0.1",
|
|
31
31
|
"eslint-plugin-react-hooks": "5.1.0",
|
|
32
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
32
|
+
"eslint-plugin-react-refresh": "^0.4.20"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/eslint": "^9.6.1",
|
|
36
36
|
"@types/node": "20.10.4",
|
|
37
|
-
"bumpp": "^
|
|
38
|
-
"eslint": "^9.
|
|
37
|
+
"bumpp": "^10.2.3",
|
|
38
|
+
"eslint": "^9.35.0",
|
|
39
39
|
"rimraf": "^6.0.1",
|
|
40
|
-
"tsup": "^8.
|
|
41
|
-
"typescript": "^5.
|
|
42
|
-
"vitest": "^2.
|
|
43
|
-
"@ririd/eslint-config": "
|
|
40
|
+
"tsup": "^8.5.0",
|
|
41
|
+
"typescript": "^5.9.2",
|
|
42
|
+
"vitest": "^3.2.4",
|
|
43
|
+
"@ririd/eslint-config": "2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup src/index.ts --format esm,cjs --clean --dts",
|