@mouse_484/eslint-config 5.0.13 → 5.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mouse_484/eslint-config",
3
3
  "type": "module",
4
- "version": "5.0.13",
4
+ "version": "5.1.0",
5
5
  "author": "mouse_484",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/mouse484/config/tree/main/packages/eslint",
@@ -22,7 +22,7 @@
22
22
  "typegen": "node scripts/typegen.js"
23
23
  },
24
24
  "dependencies": {
25
- "@antfu/eslint-config": "^4.19.0",
25
+ "@antfu/eslint-config": "^5.0.0",
26
26
  "eslint-plugin-better-tailwindcss": "^3.7.2",
27
27
  "package-manager-detector": "^1.3.0"
28
28
  },
@@ -1,5 +1,5 @@
1
1
  import { CASES } from '../const/cases.js'
2
- import { GLOB_MARKDOWN_CODE_BLOCK, GLOB_README } from '../const/glob.js'
2
+ import { GLOB_D_TS, GLOB_MARKDOWN_CODE_BLOCK, GLOB_README } from '../const/glob.js'
3
3
  import { createConfigs } from '../lib/factory.js'
4
4
 
5
5
  export default createConfigs({
@@ -33,6 +33,14 @@ export default createConfigs({
33
33
  'unicorn/prevent-abbreviations': 'off',
34
34
  },
35
35
  },
36
+ {
37
+ name: 'd.ts',
38
+ withOptions: ['typescript'],
39
+ files: [GLOB_D_TS],
40
+ rules: {
41
+ 'unicorn/require-module-specifiers': 'off',
42
+ },
43
+ },
36
44
  {
37
45
  name: 'react-components',
38
46
  withOptions: ['react'],
package/src/const/glob.js CHANGED
@@ -9,3 +9,5 @@ export const GLOB_README = '**/README.md'
9
9
  * @see https://github.com/eslint/markdown/blob/32d8cbd8b6d2d121225b5291c2f9a0ea6c2ccd00/docs/processors/markdown.md?plain=1#L96
10
10
  */
11
11
  export const GLOB_MARKDOWN_CODE_BLOCK = '**/*.md/**'
12
+
13
+ export const GLOB_D_TS = '**/*.d.ts'