@kitql/eslint-config 0.7.1 → 0.7.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.
- package/eslint.config.js +8 -3
- package/package.json +10 -9
package/eslint.config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { includeIgnoreFile } from '@eslint/compat'
|
|
2
2
|
import js from '@eslint/js'
|
|
3
|
+
import prettier from 'eslint-config-prettier'
|
|
3
4
|
import pluginPnpm from 'eslint-plugin-pnpm'
|
|
4
5
|
import svelte from 'eslint-plugin-svelte'
|
|
5
6
|
import unusedImports from 'eslint-plugin-unused-imports'
|
|
@@ -87,7 +88,9 @@ const othersRules = () => {
|
|
|
87
88
|
...js.configs.recommended, // TODO, would be nice to have a name by default?
|
|
88
89
|
},
|
|
89
90
|
...ts.configs.recommended,
|
|
90
|
-
...svelte.configs
|
|
91
|
+
...svelte.configs.recommended,
|
|
92
|
+
prettier,
|
|
93
|
+
...svelte.configs.prettier,
|
|
91
94
|
{
|
|
92
95
|
name: '@kitql:languages',
|
|
93
96
|
languageOptions: {
|
|
@@ -99,9 +102,11 @@ const othersRules = () => {
|
|
|
99
102
|
},
|
|
100
103
|
{
|
|
101
104
|
name: '@kitql:svelte:languages',
|
|
102
|
-
files: ['**/*.svelte'],
|
|
105
|
+
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
|
|
103
106
|
languageOptions: {
|
|
104
107
|
parserOptions: {
|
|
108
|
+
projectService: true,
|
|
109
|
+
extraFileExtensions: ['.svelte'],
|
|
105
110
|
parser: ts.parser,
|
|
106
111
|
},
|
|
107
112
|
},
|
|
@@ -183,7 +188,7 @@ export default config
|
|
|
183
188
|
* @returns {import('eslint').Linter.Config[]}
|
|
184
189
|
*/
|
|
185
190
|
export const kitql = (options = {}) => {
|
|
186
|
-
const pnpmCatalogsConfig = options?.pnpmCatalogs ?? { enable:
|
|
191
|
+
const pnpmCatalogsConfig = options?.pnpmCatalogs ?? { enable: false }
|
|
187
192
|
const pnpmCatalogsEnabled = pnpmCatalogsConfig.enable !== false
|
|
188
193
|
|
|
189
194
|
return [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitql/eslint-config",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "opinionated linting and formatting for projects",
|
|
6
6
|
"repository": {
|
|
@@ -32,22 +32,23 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@eslint/compat": "1.3.1",
|
|
35
|
-
"@eslint/js": "9.
|
|
35
|
+
"@eslint/js": "9.31.0",
|
|
36
36
|
"@theguild/prettier-config": "3.0.0",
|
|
37
37
|
"@types/eslint": "9.6.1",
|
|
38
|
-
"@typescript-eslint/parser": "8.
|
|
38
|
+
"@typescript-eslint/parser": "8.37.0",
|
|
39
39
|
"commander": "14.0.0",
|
|
40
|
-
"eslint": "9.
|
|
41
|
-
"eslint-
|
|
42
|
-
"eslint-plugin-
|
|
40
|
+
"eslint": "9.31.0",
|
|
41
|
+
"eslint-config-prettier": "10.1.5",
|
|
42
|
+
"eslint-plugin-pnpm": "1.1.0",
|
|
43
|
+
"eslint-plugin-svelte": "3.11.0",
|
|
43
44
|
"eslint-plugin-unused-imports": "4.1.4",
|
|
44
|
-
"globals": "16.
|
|
45
|
+
"globals": "16.3.0",
|
|
45
46
|
"jsonc-eslint-parser": "2.4.0",
|
|
46
47
|
"ora": "8.2.0",
|
|
47
48
|
"prettier": "^3.6.1",
|
|
48
49
|
"prettier-plugin-svelte": "3.4.0",
|
|
49
|
-
"prettier-plugin-tailwindcss": "0.6.
|
|
50
|
-
"typescript-eslint": "8.
|
|
50
|
+
"prettier-plugin-tailwindcss": "0.6.14",
|
|
51
|
+
"typescript-eslint": "8.37.0",
|
|
51
52
|
"yaml-eslint-parser": "1.3.0",
|
|
52
53
|
"@kitql/helpers": "0.8.13"
|
|
53
54
|
},
|