@st1ggy/linter-config 2.20.0 → 2.22.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 +16 -16
- package/src/index.d.ts +31 -0
- package/src/index.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@st1ggy/linter-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "ESLint, Stylelint and Prettier configs for React, Vue [WIP] and Svelte [WIP]",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -20,43 +20,43 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/St1ggy/linter-config#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@eslint/js": "^9.
|
|
23
|
+
"@eslint/js": "^9.26.0",
|
|
24
24
|
"@stylistic/eslint-plugin-js": "^4.2.0",
|
|
25
25
|
"@stylistic/eslint-plugin-jsx": "^4.2.0",
|
|
26
26
|
"@stylistic/eslint-plugin-migrate": "^4.2.0",
|
|
27
27
|
"@stylistic/eslint-plugin-ts": "^4.2.0",
|
|
28
|
-
"eslint": "^9.
|
|
29
|
-
"eslint-config-next": "^15.
|
|
30
|
-
"eslint-config-prettier": "^10.1.
|
|
31
|
-
"eslint-import-resolver-typescript": "^3.
|
|
28
|
+
"eslint": "^9.26.0",
|
|
29
|
+
"eslint-config-next": "^15.3.2",
|
|
30
|
+
"eslint-config-prettier": "^10.1.3",
|
|
31
|
+
"eslint-import-resolver-typescript": "^4.3.4",
|
|
32
32
|
"eslint-plugin-import": "^2.31.0",
|
|
33
|
-
"eslint-plugin-prettier": "^5.
|
|
34
|
-
"eslint-plugin-react": "^7.37.
|
|
33
|
+
"eslint-plugin-prettier": "^5.4.0",
|
|
34
|
+
"eslint-plugin-react": "^7.37.5",
|
|
35
35
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
36
36
|
"eslint-plugin-sonarjs": "^3.0.2",
|
|
37
|
-
"eslint-plugin-svelte": "^3.1
|
|
38
|
-
"eslint-plugin-unicorn": "^
|
|
37
|
+
"eslint-plugin-svelte": "^3.5.1",
|
|
38
|
+
"eslint-plugin-unicorn": "^59.0.1",
|
|
39
39
|
"patch-package": "^8.0.0",
|
|
40
40
|
"prettier": "^3.5.3",
|
|
41
41
|
"prettier-plugin-svelte": "^3.3.3",
|
|
42
|
-
"stylelint": "^16.
|
|
42
|
+
"stylelint": "^16.19.1",
|
|
43
43
|
"stylelint-config-clean-order": "^7.0.0",
|
|
44
|
-
"stylelint-config-recommended": "^
|
|
44
|
+
"stylelint-config-recommended": "^16.0.0",
|
|
45
45
|
"stylelint-config-recommended-scss": "^14.1.0",
|
|
46
46
|
"stylelint-config-sass-guidelines": "^12.1.0",
|
|
47
47
|
"stylelint-config-tailwindcss": "^1.0.0",
|
|
48
|
-
"stylelint-order": "^
|
|
48
|
+
"stylelint-order": "^7.0.0",
|
|
49
49
|
"stylelint-prettier": "^5.0.3",
|
|
50
|
-
"typescript": "^5.8.
|
|
51
|
-
"typescript-eslint": "^8.
|
|
50
|
+
"typescript": "^5.8.3",
|
|
51
|
+
"typescript-eslint": "^8.32.0"
|
|
52
52
|
},
|
|
53
53
|
"type": "module",
|
|
54
|
+
"types": "index.d.ts",
|
|
54
55
|
"exports": {
|
|
55
56
|
".": "./src/index.js",
|
|
56
57
|
"./eslint-next": "./src/eslint/eslint.config.next.js",
|
|
57
58
|
"./eslint-react": "./src/eslint/eslint.config.react.js",
|
|
58
59
|
"./eslint-svelte": "./src/eslint/eslint.config.svelte.js",
|
|
59
|
-
"./eslint-typescript": "./src/eslint/eslint.config.typescript.js",
|
|
60
60
|
"./eslint-common": "./src/eslint/eslint.config.common.js",
|
|
61
61
|
"./prettier-common": "./src/prettier/prettier.config.common.js",
|
|
62
62
|
"./prettier-svelte": "./src/prettier/prettier.config.svelte.js",
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ConfigArray } from 'eslint'
|
|
2
|
+
import { type Config as PrettierConfig } from 'prettier'
|
|
3
|
+
import { type Config as StylelintConfig } from 'stylelint'
|
|
4
|
+
|
|
5
|
+
declare module '@st1ggy/linter-config/eslint-next' {
|
|
6
|
+
export default config as ConfigArray
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module '@st1ggy/linter-config/eslint-react' {
|
|
10
|
+
export default config as ConfigArray
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare module '@st1ggy/linter-config/eslint-svelte' {
|
|
14
|
+
export default config as ConfigArray
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare module '@st1ggy/linter-config/eslint-common' {
|
|
18
|
+
export default config as ConfigArray
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare module '@st1ggy/linter-config/prettier-common' {
|
|
22
|
+
export default config as PrettierConfig
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module '@st1ggy/linter-config/prettier-svelte' {
|
|
26
|
+
export default config as PrettierConfig
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare module '@st1ggy/linter-config/stylelint-scss' {
|
|
30
|
+
export default config as StylelintConfig
|
|
31
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { default as eslintCommon } from './eslint/eslint.config.common.js'
|
|
2
2
|
export { default as eslintReact } from './eslint/eslint.config.react.js'
|
|
3
3
|
export { default as eslintNext } from './eslint/eslint.config.next.js'
|
|
4
|
+
export { default as eslintSvelte } from './eslint/eslint.config.svelte.js'
|
|
4
5
|
|
|
5
6
|
export { default as prettierCommon } from './prettier/prettier.config.common.js'
|
|
7
|
+
export { default as prettierSvelte } from './prettier/prettier.config.svelte.js'
|
|
6
8
|
|
|
7
|
-
export { default as stylelintCommon } from './stylelint/stylelint.config.common.js'
|
|
8
9
|
export { default as stylelintScss } from './stylelint/stylelint.config.scss.js'
|