@ririd/eslint-config 1.4.0 → 2.1.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.
Files changed (3) hide show
  1. package/dist/index.cjs +32 -32
  2. package/dist/index.js +30 -30
  3. package/package.json +13 -13
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 src_exports = {};
33
- __export(src_exports, {
34
- default: () => src_default,
32
+ var index_exports = {};
33
+ __export(index_exports, {
34
+ default: () => index_default,
35
35
  ririd: () => ririd
36
36
  });
37
- module.exports = __toCommonJS(src_exports);
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/react.ts
103
+ // src/configs/markdown.ts
104
104
  var import_eslint_config = require("@antfu/eslint-config");
105
- async function react() {
105
+ async function markdown() {
106
106
  return [
107
107
  {
108
- files: [import_eslint_config.GLOB_JSX, import_eslint_config.GLOB_TSX],
109
- name: "ririd:react",
108
+ name: "ririd:markdown",
109
+ files: [import_eslint_config.GLOB_MARKDOWN_CODE],
110
110
  rules: {
111
- "react-refresh/only-export-components": "off",
112
- "react/no-clone-element": "off",
113
- "react/no-missing-component-display-name": "off"
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/markdown.ts
167
+ // src/configs/react.ts
156
168
  var import_eslint_config3 = require("@antfu/eslint-config");
157
- async function markdown() {
169
+ async function react() {
158
170
  return [
159
171
  {
160
- name: "ririd:markdown",
161
- files: [import_eslint_config3.GLOB_MARKDOWN_CODE],
172
+ files: [import_eslint_config3.GLOB_JSX, import_eslint_config3.GLOB_TSX],
173
+ name: "ririd:react",
162
174
  rules: {
163
- "import/no-unresolved": "off",
164
- "unused-imports/no-unused-imports": "off",
165
- "unused-imports/no-unused-vars": "off",
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(src_exports, require("@antfu/eslint-config"), module.exports);
208
- var src_default = ririd;
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/react.ts
66
- import { GLOB_JSX, GLOB_TSX } from "@antfu/eslint-config";
67
- async function react() {
65
+ // src/configs/markdown.ts
66
+ import { GLOB_MARKDOWN_CODE } from "@antfu/eslint-config";
67
+ async function markdown() {
68
68
  return [
69
69
  {
70
- files: [GLOB_JSX, GLOB_TSX],
71
- name: "ririd:react",
70
+ name: "ririd:markdown",
71
+ files: [GLOB_MARKDOWN_CODE],
72
72
  rules: {
73
- "react-refresh/only-export-components": "off",
74
- "react/no-clone-element": "off",
75
- "react/no-missing-component-display-name": "off"
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/markdown.ts
118
- import { GLOB_MARKDOWN_CODE } from "@antfu/eslint-config";
119
- async function markdown() {
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
- name: "ririd:markdown",
123
- files: [GLOB_MARKDOWN_CODE],
134
+ files: [GLOB_JSX, GLOB_TSX],
135
+ name: "ririd:react",
124
136
  rules: {
125
- "import/no-unresolved": "off",
126
- "unused-imports/no-unused-imports": "off",
127
- "unused-imports/no-unused-vars": "off",
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 src_default = ririd;
170
+ var index_default = ririd;
171
171
  export {
172
- src_default as default,
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": "1.4.0",
4
+ "version": "2.1.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.11.2",
28
- "@eslint-react/eslint-plugin": "^1.17.3",
29
- "@next/eslint-plugin-next": "^14.2.20",
30
- "eslint-plugin-format": "^0.1.3",
27
+ "@antfu/eslint-config": "^7.0.1",
28
+ "@eslint-react/eslint-plugin": "^1.53.1",
29
+ "@next/eslint-plugin-next": "^15.5.9",
30
+ "eslint-plugin-format": "^1.3.1",
31
31
  "eslint-plugin-react-hooks": "5.1.0",
32
- "eslint-plugin-react-refresh": "^0.4.16"
32
+ "eslint-plugin-react-refresh": "^0.4.26"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/eslint": "^9.6.1",
36
36
  "@types/node": "20.10.4",
37
- "bumpp": "^9.8.1",
38
- "eslint": "^9.16.0",
39
- "rimraf": "^6.0.1",
40
- "tsup": "^8.3.5",
41
- "typescript": "^5.7.2",
42
- "vitest": "^2.1.8",
43
- "@ririd/eslint-config": "1.4.0"
37
+ "bumpp": "^10.4.0",
38
+ "eslint": "^9.39.2",
39
+ "rimraf": "^6.1.2",
40
+ "tsup": "^8.5.1",
41
+ "typescript": "^5.9.3",
42
+ "vitest": "^3.2.4",
43
+ "@ririd/eslint-config": "2.1.0"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsup src/index.ts --format esm,cjs --clean --dts",