@st1ggy/linter-config 2.35.0 → 2.35.2

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +28 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@st1ggy/linter-config",
3
- "version": "2.35.0",
3
+ "version": "2.35.2",
4
4
  "description": "ESLint, Stylelint and Prettier configs for React, Vue [WIP] and Svelte [WIP]",
5
5
  "private": false,
6
6
  "repository": {
package/src/index.d.ts CHANGED
@@ -1,31 +1,49 @@
1
- import { type ConfigArray } from 'eslint'
2
- import { type Config as PrettierConfig } from 'prettier'
3
- import { type Config as StylelintConfig } from 'stylelint'
1
+ import type { Linter } from 'eslint'
4
2
 
5
3
  declare module '@st1ggy/linter-config/eslint-next' {
6
- export default config as ConfigArray
4
+ const config: Linter.Config[]
5
+
6
+ export default config
7
7
  }
8
8
 
9
9
  declare module '@st1ggy/linter-config/eslint-react' {
10
- export default config as ConfigArray
10
+ const config: Linter.Config[]
11
+
12
+ export default config
11
13
  }
12
14
 
13
15
  declare module '@st1ggy/linter-config/eslint-svelte' {
14
- export default config as ConfigArray
16
+ const config: Linter.Config[]
17
+
18
+ export default config
15
19
  }
16
20
 
17
21
  declare module '@st1ggy/linter-config/eslint-common' {
18
- export default config as ConfigArray
22
+ const config: Linter.Config[]
23
+
24
+ export default config
19
25
  }
20
26
 
21
27
  declare module '@st1ggy/linter-config/prettier-common' {
22
- export default config as PrettierConfig
28
+ import type { Config } from 'prettier'
29
+
30
+ const config: Config
31
+
32
+ export default config
23
33
  }
24
34
 
25
35
  declare module '@st1ggy/linter-config/prettier-svelte' {
26
- export default config as PrettierConfig
36
+ import type { Config } from 'prettier'
37
+
38
+ const config: Config
39
+
40
+ export default config
27
41
  }
28
42
 
29
43
  declare module '@st1ggy/linter-config/stylelint-scss' {
30
- export default config as StylelintConfig
44
+ import type { Config } from 'stylelint'
45
+
46
+ const config: Config
47
+
48
+ export default config
31
49
  }