@kitql/eslint-config 0.8.0-next.7 → 0.8.1
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/.prettierrc.js +8 -4
- package/eslint.config.js +7 -0
- package/package.json +16 -16
package/.prettierrc.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'
|
|
2
|
+
|
|
3
|
+
const require = createRequire(import.meta.url)
|
|
4
|
+
|
|
1
5
|
const config = {
|
|
2
6
|
tabWidth: 1,
|
|
3
7
|
useTabs: true,
|
|
@@ -7,10 +11,10 @@ const config = {
|
|
|
7
11
|
arrowParens: 'always',
|
|
8
12
|
printWidth: 100,
|
|
9
13
|
plugins: [
|
|
10
|
-
'@ianvs/prettier-plugin-sort-imports',
|
|
11
|
-
'prettier-plugin-sh',
|
|
12
|
-
'prettier-plugin-svelte',
|
|
13
|
-
'prettier-plugin-tailwindcss', // MUST come last
|
|
14
|
+
require.resolve('@ianvs/prettier-plugin-sort-imports'),
|
|
15
|
+
require.resolve('prettier-plugin-sh'),
|
|
16
|
+
require.resolve('prettier-plugin-svelte'),
|
|
17
|
+
require.resolve('prettier-plugin-tailwindcss'), // MUST come last
|
|
14
18
|
],
|
|
15
19
|
importOrderParserPlugins: ['typescript', 'decorators-legacy'],
|
|
16
20
|
importOrder: [
|
package/eslint.config.js
CHANGED
|
@@ -121,6 +121,13 @@ const othersRules = ({ svelteConfig } = {}) => {
|
|
|
121
121
|
name: '@kitql:ignores',
|
|
122
122
|
ignores: ['build/', '.svelte-kit/', 'dist/', '**/build/', '**/.svelte-kit/', '**/dist/'],
|
|
123
123
|
},
|
|
124
|
+
{
|
|
125
|
+
name: '@kitql:tests',
|
|
126
|
+
files: ['**/*.test.ts', '**/*.test.js', '**/*.spec.ts', '**/*.spec.js'],
|
|
127
|
+
rules: {
|
|
128
|
+
'e18e/prefer-static-regex': 'off',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
124
131
|
{
|
|
125
132
|
name: '@kitql:unused-imports',
|
|
126
133
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitql/eslint-config",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "opinionated linting and formatting for projects",
|
|
6
6
|
"repository": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"format"
|
|
35
35
|
],
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"eslint": "
|
|
38
|
-
"oxlint": "1.
|
|
39
|
-
"oxlint-tsgolint": "0.
|
|
37
|
+
"eslint": "10.1.0",
|
|
38
|
+
"oxlint": "1.59.0",
|
|
39
|
+
"oxlint-tsgolint": "0.20.0",
|
|
40
40
|
"prettier": "^3.6.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
@@ -54,24 +54,24 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@e18e/eslint-plugin": "^0.
|
|
58
|
-
"@eslint/compat": "
|
|
59
|
-
"@eslint/js": "
|
|
57
|
+
"@e18e/eslint-plugin": "^0.3.0",
|
|
58
|
+
"@eslint/compat": "2.0.3",
|
|
59
|
+
"@eslint/js": "10.0.1",
|
|
60
60
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
61
61
|
"@types/eslint": "9.6.1",
|
|
62
|
-
"@typescript-eslint/parser": "8.
|
|
62
|
+
"@typescript-eslint/parser": "8.58.1",
|
|
63
63
|
"commander": "14.0.0",
|
|
64
64
|
"eslint-config-prettier": "10.1.5",
|
|
65
|
-
"eslint-plugin-oxlint": "1.
|
|
66
|
-
"eslint-plugin-pnpm": "1.
|
|
67
|
-
"eslint-plugin-svelte": "3.
|
|
68
|
-
"globals": "17.
|
|
69
|
-
"jsonc-eslint-parser": "
|
|
65
|
+
"eslint-plugin-oxlint": "1.59.0",
|
|
66
|
+
"eslint-plugin-pnpm": "1.6.0",
|
|
67
|
+
"eslint-plugin-svelte": "3.16.0",
|
|
68
|
+
"globals": "17.4.0",
|
|
69
|
+
"jsonc-eslint-parser": "3.1.0",
|
|
70
70
|
"prettier-plugin-sh": "^0.18.0",
|
|
71
71
|
"prettier-plugin-svelte": "^3.4.0",
|
|
72
|
-
"prettier-plugin-tailwindcss": "^0.7.
|
|
73
|
-
"typescript-eslint": "8.
|
|
74
|
-
"yaml-eslint-parser": "
|
|
72
|
+
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
73
|
+
"typescript-eslint": "8.58.1",
|
|
74
|
+
"yaml-eslint-parser": "2.0.0",
|
|
75
75
|
"@kitql/helpers": "0.8.13"
|
|
76
76
|
},
|
|
77
77
|
"publishConfig": {
|