@1stg/eslint-config 8.0.6 → 8.0.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`709e779`](https://github.com/1stG/configs/commit/709e779d29bf8c604826aca16eb498a93b793b17) Thanks [@JounQin](https://github.com/JounQin)! - chore: enable `ignoreUsedVariables` for `prefer-export-from` rule
8
+
3
9
  ## 8.0.6
4
10
 
5
11
  ### Patch Changes
package/base.js CHANGED
@@ -156,6 +156,7 @@ export const base = tseslint.config([
156
156
  'unicorn/prefer-module': 0,
157
157
  'unicorn/prefer-object-from-entries': 0,
158
158
  'unicorn/prevent-abbreviations': 0,
159
+ 'unicorn/prefer-export-from': [2, { ignoreUsedVariables: true }],
159
160
  },
160
161
  },
161
162
  {
package/overrides.js CHANGED
@@ -29,13 +29,17 @@ import vueParser from 'vue-eslint-parser'
29
29
 
30
30
  import { isTsAvailable, magicNumbers, prettierExtends } from './_util.js'
31
31
 
32
+ /**
33
+ * @import {TSESLint} from '@typescript-eslint/utils'
34
+ */
35
+
32
36
  const configFile =
33
37
  tryFile(path.resolve('babel.config.js')) ||
34
38
  tryFile(path.resolve('.babelrc.js')) ||
35
39
  tryPkg('@1stg/babel-preset/config')
36
40
 
37
41
  /**
38
- * @satisfies {Linter.Config}
42
+ * @satisfies {TSESLint.FlatConfig.Config}
39
43
  */
40
44
  const jsBase = {
41
45
  name: '@1stg/js-base',
@@ -296,7 +300,7 @@ export const ts = tseslint.config(
296
300
  )
297
301
 
298
302
  /**
299
- * @type {Linter.Config}
303
+ * @satisfies {TSESLint.FlatConfig.Config}
300
304
  */
301
305
  export const dTs = {
302
306
  name: '@1stg/d-ts',
@@ -518,7 +522,7 @@ const nonSourceRules = /** @type {const} */ ({
518
522
  })
519
523
 
520
524
  /**
521
- * @type {Linter.Config}
525
+ * @satisfies {TSESLint.FlatConfig.Config}
522
526
  */
523
527
  export const test = {
524
528
  name: '@1stg/test',
@@ -536,7 +540,7 @@ export const jest = tseslint.config({
536
540
  })
537
541
 
538
542
  /**
539
- * @type {Linter.Config}
543
+ * @satisfies {TSESLint.FlatConfig.Config}
540
544
  */
541
545
  export const script = {
542
546
  name: '@1stg/script',
@@ -547,7 +551,7 @@ export const script = {
547
551
  export const scripts = script
548
552
 
549
553
  /**
550
- * @type {Linter.Config}
554
+ * @satisfies {TSESLint.FlatConfig.Config}
551
555
  */
552
556
  export const story = {
553
557
  name: '@1stg/story',
@@ -558,7 +562,7 @@ export const story = {
558
562
  export const stories = story
559
563
 
560
564
  /**
561
- * @type {Linter.Config}
565
+ * @satisfies {TSESLint.FlatConfig.Config}
562
566
  */
563
567
  export const config = {
564
568
  name: '@1stg/config',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1stg/eslint-config",
3
- "version": "8.0.6",
3
+ "version": "8.0.7",
4
4
  "type": "module",
5
5
  "description": "Personal but Shareable ESLint Configuration for all 1stG.me projects",
6
6
  "repository": "git+https://github.com/1stG/configs.git",