@dg-scripts/eslint-config 5.21.1 → 5.21.3

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/index.js +4 -2
  2. package/package.json +16 -10
  3. package/CHANGELOG.md +0 -436
package/index.js CHANGED
@@ -31,6 +31,9 @@ const eslintConfigNext
31
31
  const eslintConfigMarkdown = {
32
32
  files: [GLOB_MARKDOWN_CODE, `${GLOB_MARKDOWN}/**/*.vue`],
33
33
  languageOptions: { parserOptions: { project: false, program: null } },
34
+ rules: {
35
+ 'react/no-leaked-conditional-rendering': 'off',
36
+ },
34
37
  }
35
38
 
36
39
  /** @type {import('@antfu/eslint-config').TypedFlatConfigItem} */
@@ -95,7 +98,6 @@ const eslintConfigPromise = {
95
98
  plugins: {
96
99
  promise: eslintPluginPromise,
97
100
  },
98
- // @ts-expect-error -- Allow assign `string` (error/warn/off) to `RuleEntry`.
99
101
  rules: {
100
102
  ...eslintPluginPromise.configs.recommended.rules,
101
103
  'promise/always-return': [
@@ -144,7 +146,7 @@ const eslintConfigAntfu = {
144
146
  export default antfu(
145
147
  {
146
148
  typescript: {
147
- tsconfigPath: ['tsconfig.json', 'packages/*/tsconfig.json'],
149
+ tsconfigPath: 'tsconfig.json',
148
150
  },
149
151
  ...eslintConfigAntfu,
150
152
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dg-scripts/eslint-config",
3
3
  "type": "module",
4
- "version": "5.21.1",
4
+ "version": "5.21.3",
5
5
  "description": "ESLint configuration used by dg-scripts.",
6
6
  "author": "sabertazimi <sabertazimi@gmail.com>",
7
7
  "license": "MIT",
@@ -24,6 +24,12 @@
24
24
  "eslint-prettier"
25
25
  ],
26
26
  "main": "index.js",
27
+ "files": [
28
+ "LICENSE",
29
+ "README.md",
30
+ "index.js",
31
+ "package.json"
32
+ ],
27
33
  "publishConfig": {
28
34
  "access": "public"
29
35
  },
@@ -49,16 +55,16 @@
49
55
  }
50
56
  },
51
57
  "dependencies": {
52
- "@antfu/eslint-config": "^2.15.0",
53
- "@eslint-react/eslint-plugin": "^1.5.9",
54
- "@eslint/eslintrc": "^3.0.2",
55
- "eslint-plugin-format": "^0.1.1",
56
- "eslint-plugin-promise": "^6.1.1",
57
- "eslint-plugin-react-hooks": "^4.6.0",
58
- "eslint-plugin-react-refresh": "^0.4.6",
59
- "eslint-plugin-security": "^3.0.0",
58
+ "@antfu/eslint-config": "^2.23.1",
59
+ "@eslint-react/eslint-plugin": "^1.5.28",
60
+ "@eslint/eslintrc": "^3.1.0",
61
+ "eslint-plugin-format": "^0.1.2",
62
+ "eslint-plugin-promise": "^6.5.1",
63
+ "eslint-plugin-react-hooks": "^4.6.2",
64
+ "eslint-plugin-react-refresh": "^0.4.8",
65
+ "eslint-plugin-security": "^3.0.1",
60
66
  "eslint-plugin-testing-library": "^6.2.2",
61
67
  "local-pkg": "^0.5.0"
62
68
  },
63
- "gitHead": "2776229a50118815f46374aed1db5f5028ae6d66"
69
+ "gitHead": "33a9ef85979e8e04af80f9577eca064158e8a070"
64
70
  }
package/CHANGELOG.md DELETED
@@ -1,436 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [5.21.1](https://github.com/sabertazimi/bod/compare/v5.21.0...v5.21.1) (2024-04-24)
7
-
8
- **Note:** Version bump only for package @dg-scripts/eslint-config
9
-
10
-
11
-
12
-
13
-
14
- # [5.21.0](https://github.com/sabertazimi/bod/compare/v5.20.1...v5.21.0) (2024-04-20)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * **deps:** update dependencies (non-major) ([#1165](https://github.com/sabertazimi/bod/issues/1165)) ([cb2a01b](https://github.com/sabertazimi/bod/commit/cb2a01bc747bd24ca419501a45a5baf923278dbf))
20
- * **deps:** update dependencies (non-major) ([#1170](https://github.com/sabertazimi/bod/issues/1170)) ([ed0a2cc](https://github.com/sabertazimi/bod/commit/ed0a2cc5fdc6062ac4605cec66de9269abddacbe))
21
- * **deps:** update dependencies (non-major) ([#1176](https://github.com/sabertazimi/bod/issues/1176)) ([f33d8ea](https://github.com/sabertazimi/bod/commit/f33d8ea9e936d6ec890d003a83ad69fd4cbce0cb))
22
- * **deps:** update dependency eslint-plugin-security to v3 ([#1181](https://github.com/sabertazimi/bod/issues/1181)) ([1adb9e0](https://github.com/sabertazimi/bod/commit/1adb9e086488bde2213a15049b4fc54b01d5969b))
23
- * **eslint-config:** allow last `then` not return ([#1169](https://github.com/sabertazimi/bod/issues/1169)) ([061c950](https://github.com/sabertazimi/bod/commit/061c950bca59c0c7e02ffd9ab49d4699ecf03243))
24
-
25
-
26
- ### Features
27
-
28
- * **eslint:** migrate from eslint-plugin-react to [@eslint-react](https://github.com/eslint-react) ([#1184](https://github.com/sabertazimi/bod/issues/1184)) ([20836f6](https://github.com/sabertazimi/bod/commit/20836f61127f2a636c5a42198d34bc2f3bde94b8))
29
-
30
-
31
-
32
-
33
-
34
- ## [5.20.1](https://github.com/sabertazimi/bod/compare/v5.20.0...v5.20.1) (2024-04-02)
35
-
36
-
37
- ### Bug Fixes
38
-
39
- * **eslint-config:** disable security rules for markdown codes ([#1164](https://github.com/sabertazimi/bod/issues/1164)) ([20987c2](https://github.com/sabertazimi/bod/commit/20987c27aa7b0c2b94fc638a0e92b75cf30817d1))
40
-
41
-
42
-
43
-
44
-
45
- # [5.20.0](https://github.com/sabertazimi/bod/compare/v5.19.0...v5.20.0) (2024-04-02)
46
-
47
-
48
- ### Bug Fixes
49
-
50
- * **eslint-config:** require description rule ([#1162](https://github.com/sabertazimi/bod/issues/1162)) ([58d35e8](https://github.com/sabertazimi/bod/commit/58d35e8211aefe0bde523fba7da57c1b377e65b5))
51
-
52
-
53
- ### Features
54
-
55
- * **eslint-config:** add security and promise plugins ([#1163](https://github.com/sabertazimi/bod/issues/1163)) ([c9d49cf](https://github.com/sabertazimi/bod/commit/c9d49cfaed1b41364e620b120d359a1d4727868b))
56
-
57
-
58
-
59
-
60
-
61
- # [5.19.0](https://github.com/sabertazimi/bod/compare/v5.18.0...v5.19.0) (2024-04-01)
62
-
63
-
64
- ### Bug Fixes
65
-
66
- * **eslint-config:** allow uppercase title for top-level describe ([#1160](https://github.com/sabertazimi/bod/issues/1160)) ([3a08c25](https://github.com/sabertazimi/bod/commit/3a08c2516496b99431119f50b4dd0527fe31a6eb))
67
-
68
-
69
- ### Features
70
-
71
- * **eslint-config:** add testing-library support ([#1161](https://github.com/sabertazimi/bod/issues/1161)) ([861ee93](https://github.com/sabertazimi/bod/commit/861ee93b9e71ed46f93b9a3927f8444e8591a2c0))
72
-
73
-
74
-
75
-
76
-
77
- # [5.18.0](https://github.com/sabertazimi/bod/compare/v5.17.0...v5.18.0) (2024-04-01)
78
-
79
-
80
- ### Bug Fixes
81
-
82
- * **eslint-config-bod:** rectify incorrect es6 globals ([#1158](https://github.com/sabertazimi/bod/issues/1158)) ([cd35e76](https://github.com/sabertazimi/bod/commit/cd35e764a9b7d12d43c7e68e5b5ec15e6c171fd4))
83
- * **eslint-config:** disable tsconfig check for markdown codes ([#1157](https://github.com/sabertazimi/bod/issues/1157)) ([59673e2](https://github.com/sabertazimi/bod/commit/59673e22273067cdb2df744a848e5e5ce36fffc9))
84
- * **eslint-config:** use glob patterns to match files ([#1154](https://github.com/sabertazimi/bod/issues/1154)) ([1900953](https://github.com/sabertazimi/bod/commit/190095338bfd6a713feee4a4f84efdf177975a07))
85
-
86
-
87
-
88
-
89
-
90
- # [5.17.0](https://github.com/sabertazimi/bod/compare/v5.16.0...v5.17.0) (2024-03-30)
91
-
92
-
93
- ### Bug Fixes
94
-
95
- * **deps:** update dependency @antfu/eslint-config to ^2.11.6 ([#1139](https://github.com/sabertazimi/bod/issues/1139)) ([623eab5](https://github.com/sabertazimi/bod/commit/623eab59fb89b5e834a189889513a1ce0b0b96c8))
96
- * **eslint-config:** project config for type-aware rules ([#1138](https://github.com/sabertazimi/bod/issues/1138)) ([b1ab580](https://github.com/sabertazimi/bod/commit/b1ab58095ae9ab65b9498060cca58ff58b1d1002))
97
-
98
-
99
- ### Features
100
-
101
- * **eslint-config:** config for non type-aware rules ([#1141](https://github.com/sabertazimi/bod/issues/1141)) ([6900b0d](https://github.com/sabertazimi/bod/commit/6900b0de861644c61dd4baf9758ca7740330ccb9))
102
-
103
-
104
-
105
-
106
-
107
- # [5.16.0](https://github.com/sabertazimi/bod/compare/v5.15.2...v5.16.0) (2024-03-30)
108
-
109
-
110
- ### Bug Fixes
111
-
112
- * **eslint-config:** change brace-style to '1tbs' ([#1136](https://github.com/sabertazimi/bod/issues/1136)) ([06529a5](https://github.com/sabertazimi/bod/commit/06529a50b59bbeacb3bec4187a8ac240d8c39026))
113
-
114
-
115
- ### Features
116
-
117
- * **eslint-config:** add optional Next.js support ([#1135](https://github.com/sabertazimi/bod/issues/1135)) ([eeac1bc](https://github.com/sabertazimi/bod/commit/eeac1bcbca17d41e11664a5d8f2212c6778674b3))
118
-
119
-
120
-
121
-
122
-
123
- ## [5.15.2](https://github.com/sabertazimi/bod/compare/v5.15.1...v5.15.2) (2024-03-30)
124
-
125
- **Note:** Version bump only for package @dg-scripts/eslint-config
126
-
127
-
128
-
129
-
130
-
131
- ## [5.15.1](https://github.com/sabertazimi/bod/compare/v5.15.0...v5.15.1) (2024-03-30)
132
-
133
- **Note:** Version bump only for package @dg-scripts/eslint-config
134
-
135
-
136
-
137
-
138
-
139
- # [5.15.0](https://github.com/sabertazimi/bod/compare/v5.14.3...v5.15.0) (2024-03-30)
140
-
141
-
142
- ### Features
143
-
144
- * **eslint-config:** ship to flat configuration ([#1133](https://github.com/sabertazimi/bod/issues/1133)) ([3e33201](https://github.com/sabertazimi/bod/commit/3e332013a0f8a7f6d55f068451db0116ec3e62d8))
145
-
146
-
147
-
148
-
149
-
150
- ## [5.14.3](https://github.com/sabertazimi/bod/compare/v5.14.2...v5.14.3) (2024-03-05)
151
-
152
- **Note:** Version bump only for package @dg-scripts/eslint-config
153
-
154
-
155
-
156
-
157
-
158
- ## [5.14.2](https://github.com/sabertazimi/bod/compare/v5.14.1...v5.14.2) (2024-01-20)
159
-
160
-
161
- ### Bug Fixes
162
-
163
- * **deps:** update dependencies (non-major) ([#1075](https://github.com/sabertazimi/bod/issues/1075)) ([e75f127](https://github.com/sabertazimi/bod/commit/e75f1273347faf9831d84b3fc41db0484c549b6c))
164
-
165
-
166
-
167
-
168
-
169
- ## [5.14.1](https://github.com/sabertazimi/bod/compare/v5.14.0...v5.14.1) (2023-12-26)
170
-
171
-
172
- ### Bug Fixes
173
-
174
- * **deps:** update dependencies (non-major) ([#1001](https://github.com/sabertazimi/bod/issues/1001)) ([046d35b](https://github.com/sabertazimi/bod/commit/046d35b5d4c15f59e9211107003ebf8fdc11516a))
175
- * **deps:** update dependencies (non-major) ([#1045](https://github.com/sabertazimi/bod/issues/1045)) ([e89dc14](https://github.com/sabertazimi/bod/commit/e89dc14dcedd5bdb880b701a2635516817bcc6a8))
176
- * **deps:** update dependencies (non-major) ([#1072](https://github.com/sabertazimi/bod/issues/1072)) ([3373cc7](https://github.com/sabertazimi/bod/commit/3373cc72c66f2297013b1b1db6822ac520113f65))
177
- * **deps:** update dependency eslint-config-prettier to ^9.1.0 ([#1064](https://github.com/sabertazimi/bod/issues/1064)) ([eaa66fb](https://github.com/sabertazimi/bod/commit/eaa66fb653060386ad950f075654298da08ea09f))
178
- * **deps:** update dependency eslint-config-prettier to v9 ([#1016](https://github.com/sabertazimi/bod/issues/1016)) ([2e7d863](https://github.com/sabertazimi/bod/commit/2e7d8635a240f9e54e7e3c11fa9df07d7f94fab1))
179
-
180
-
181
-
182
-
183
-
184
- # [5.14.0](https://github.com/sabertazimi/bod/compare/v5.13.5...v5.14.0) (2023-07-08)
185
-
186
-
187
- ### Bug Fixes
188
-
189
- * **deps:** update dependencies (non-major) ([#933](https://github.com/sabertazimi/bod/issues/933)) ([fa21516](https://github.com/sabertazimi/bod/commit/fa215162aa96d79a135cd561730121cff171f5e5))
190
-
191
-
192
- ### Features
193
-
194
- * **deps:** update prettier to v3 ([#997](https://github.com/sabertazimi/bod/issues/997)) ([93ee6fd](https://github.com/sabertazimi/bod/commit/93ee6fdc784acfb989570c1c9e13ab8a1dd9d1bd))
195
-
196
-
197
-
198
-
199
-
200
- ## [5.13.5](https://github.com/sabertazimi/bod/compare/v5.13.4...v5.13.5) (2023-03-21)
201
-
202
- **Note:** Version bump only for package @dg-scripts/eslint-config
203
-
204
-
205
-
206
-
207
-
208
- ## [5.13.4](https://github.com/sabertazimi/bod/compare/v5.13.3...v5.13.4) (2023-03-08)
209
-
210
- **Note:** Version bump only for package @dg-scripts/eslint-config
211
-
212
-
213
-
214
-
215
-
216
- ## [5.13.3](https://github.com/sabertazimi/bod/compare/v5.13.2...v5.13.3) (2023-02-19)
217
-
218
- **Note:** Version bump only for package @dg-scripts/eslint-config
219
-
220
-
221
-
222
-
223
-
224
- ## [5.13.2](https://github.com/sabertazimi/bod/compare/v5.13.1...v5.13.2) (2023-02-14)
225
-
226
- **Note:** Version bump only for package @dg-scripts/eslint-config
227
-
228
-
229
-
230
-
231
-
232
- ## [5.13.1](https://github.com/sabertazimi/bod/compare/v5.13.0...v5.13.1) (2023-02-12)
233
-
234
- **Note:** Version bump only for package @dg-scripts/eslint-config
235
-
236
-
237
-
238
-
239
-
240
- # [5.13.0](https://github.com/sabertazimi/bod/compare/v5.12.0...v5.13.0) (2023-02-12)
241
-
242
- **Note:** Version bump only for package @dg-scripts/eslint-config
243
-
244
-
245
-
246
-
247
-
248
- # [5.12.0](https://github.com/sabertazimi/bod/compare/v5.11.1...v5.12.0) (2023-02-12)
249
-
250
- **Note:** Version bump only for package @dg-scripts/eslint-config
251
-
252
-
253
-
254
-
255
-
256
- ## [5.11.1](https://github.com/sabertazimi/bod/compare/v5.11.0...v5.11.1) (2023-02-12)
257
-
258
-
259
- ### Bug Fixes
260
-
261
- * **deps:** update dependencies (non-major) ([#769](https://github.com/sabertazimi/bod/issues/769)) ([3ce05f2](https://github.com/sabertazimi/bod/commit/3ce05f2758cc4b76bdbeb98c5d4d26f9eaffe0a3))
262
- * **deps:** update dependencies (non-major) ([#875](https://github.com/sabertazimi/bod/issues/875)) ([16d843c](https://github.com/sabertazimi/bod/commit/16d843c97062c25e39e76efe5df20cae8c8aeac9))
263
-
264
-
265
-
266
-
267
-
268
- # [5.11.0](https://github.com/sabertazimi/bod/compare/v5.10.0...v5.11.0) (2022-06-20)
269
-
270
-
271
- ### Bug Fixes
272
-
273
- * **eslint-config:** improve `package.json` sorting ([#758](https://github.com/sabertazimi/bod/issues/758)) ([dd47adc](https://github.com/sabertazimi/bod/commit/dd47adcc7f78a56956421669bb383e9aa0858232))
274
-
275
-
276
-
277
-
278
-
279
- # [5.10.0](https://github.com/sabertazimi/bod/compare/v5.9.0...v5.10.0) (2022-04-30)
280
-
281
- **Note:** Version bump only for package @dg-scripts/eslint-config
282
-
283
-
284
-
285
-
286
-
287
- # [5.9.0](https://github.com/sabertazimi/bod/compare/v5.8.1...v5.9.0) (2022-04-19)
288
-
289
- **Note:** Version bump only for package @dg-scripts/eslint-config
290
-
291
-
292
-
293
-
294
-
295
- ## [5.8.1](https://github.com/sabertazimi/bod/compare/v5.8.0...v5.8.1) (2022-04-03)
296
-
297
- **Note:** Version bump only for package @dg-scripts/eslint-config
298
-
299
-
300
-
301
-
302
-
303
- # [5.8.0](https://github.com/sabertazimi/bod/compare/v5.7.0...v5.8.0) (2022-03-20)
304
-
305
- **Note:** Version bump only for package @dg-scripts/eslint-config
306
-
307
-
308
-
309
-
310
-
311
- # [5.7.0](https://github.com/sabertazimi/bod/compare/v5.6.2...v5.7.0) (2022-03-19)
312
-
313
-
314
- ### Bug Fixes
315
-
316
- * **deps:** update dependency eslint-config-prettier to ^8.4.0 ([#599](https://github.com/sabertazimi/bod/issues/599)) ([8defa83](https://github.com/sabertazimi/bod/commit/8defa83023710d1fcbda911175456c09be448c92))
317
- * **deps:** update dependency eslint-config-prettier to ^8.5.0 ([#630](https://github.com/sabertazimi/bod/issues/630)) ([ad65e30](https://github.com/sabertazimi/bod/commit/ad65e309b874fca0011db65ff5e5b8303f26b178))
318
- * **eslint-config:** improve rules configuration ([#660](https://github.com/sabertazimi/bod/issues/660)) ([bbdb0c0](https://github.com/sabertazimi/bod/commit/bbdb0c02e4aab8c6ef3206f18d96e29503b28032))
319
-
320
-
321
-
322
-
323
-
324
- ## [5.6.2](https://github.com/sabertazimi/bod/compare/v5.6.1...v5.6.2) (2022-01-17)
325
-
326
- **Note:** Version bump only for package @dg-scripts/eslint-config
327
-
328
-
329
-
330
-
331
-
332
- ## [5.6.1](https://github.com/sabertazimi/bod/compare/v5.6.0...v5.6.1) (2021-12-26)
333
-
334
- **Note:** Version bump only for package @dg-scripts/eslint-config
335
-
336
-
337
-
338
-
339
-
340
- # [5.6.0](https://github.com/sabertazimi/bod/compare/v5.5.10...v5.6.0) (2021-12-13)
341
-
342
- **Note:** Version bump only for package @dg-scripts/eslint-config
343
-
344
-
345
-
346
-
347
-
348
- ## [5.5.10](https://github.com/sabertazimi/bod/compare/v5.5.9...v5.5.10) (2021-11-11)
349
-
350
- **Note:** Version bump only for package @dg-scripts/eslint-config
351
-
352
-
353
-
354
-
355
-
356
- ## [5.5.9](https://github.com/sabertazimi/bod/compare/v5.5.8...v5.5.9) (2021-10-30)
357
-
358
- **Note:** Version bump only for package @dg-scripts/eslint-config
359
-
360
-
361
-
362
-
363
-
364
- ## [5.5.8](https://github.com/sabertazimi/bod/compare/v5.5.7...v5.5.8) (2021-10-27)
365
-
366
- **Note:** Version bump only for package @dg-scripts/eslint-config
367
-
368
-
369
-
370
-
371
-
372
- ## [5.5.7](https://github.com/sabertazimi/bod/compare/v5.5.6...v5.5.7) (2021-10-23)
373
-
374
- **Note:** Version bump only for package @dg-scripts/eslint-config
375
-
376
-
377
-
378
-
379
-
380
- ## [5.5.6](https://github.com/sabertazimi/bod/compare/v5.5.5...v5.5.6) (2021-10-23)
381
-
382
- **Note:** Version bump only for package @dg-scripts/eslint-config
383
-
384
-
385
-
386
-
387
-
388
- ## [5.5.5](https://github.com/sabertazimi/bod/compare/v5.5.4...v5.5.5) (2021-10-23)
389
-
390
- **Note:** Version bump only for package @dg-scripts/eslint-config
391
-
392
-
393
-
394
-
395
-
396
- ## [5.5.4](https://github.com/sabertazimi/bod/compare/v5.5.3...v5.5.4) (2021-10-17)
397
-
398
- **Note:** Version bump only for package @dg-scripts/eslint-config
399
-
400
-
401
-
402
-
403
-
404
- ## [5.5.3](https://github.com/sabertazimi/bod/compare/v5.5.2...v5.5.3) (2021-10-16)
405
-
406
-
407
- ### Bug Fixes
408
-
409
- * **deps:** update dependency eslint to v8 ([#242](https://github.com/sabertazimi/bod/issues/242)) ([f8e0034](https://github.com/sabertazimi/bod/commit/f8e0034b58221a7afa385c11214814882769e513))
410
-
411
-
412
-
413
-
414
-
415
- ## [5.5.2](https://github.com/sabertazimi/bod/compare/v5.5.1...v5.5.2) (2021-10-14)
416
-
417
- **Note:** Version bump only for package @dg-scripts/eslint-config
418
-
419
-
420
-
421
-
422
-
423
- ## [5.5.1](https://github.com/sabertazimi/bod/compare/v5.5.0...v5.5.1) (2021-10-12)
424
-
425
- **Note:** Version bump only for package @dg-scripts/eslint-config
426
-
427
-
428
-
429
-
430
-
431
- # [5.5.0](https://github.com/sabertazimi/bod/compare/v5.4.1...v5.5.0) (2021-10-12)
432
-
433
-
434
- ### Features
435
-
436
- * **linter:** add `dg-scripts` eslint and stylelint configuration ([2cb283f](https://github.com/sabertazimi/bod/commit/2cb283f8f96fd2381459b284c8d9afccd4b8fd66))