@soleil-se/eslint-config 6.2.2 → 6.2.4
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/CHANGELOG.md +8 -0
- package/bin/index.js +0 -0
- package/package.json +4 -4
- package/rules/svelte/style.js +5 -1
- package/typescript.js +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ All changes in this repository are noted here.
|
|
|
7
7
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
8
8
|
and the project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
9
9
|
|
|
10
|
+
## [6.2.4] - 2025-05-23
|
|
11
|
+
|
|
12
|
+
* Add import settings for typescript config.
|
|
13
|
+
|
|
14
|
+
## [6.2.3] - 2025-05-16
|
|
15
|
+
|
|
16
|
+
* Adjust sort order for some attributes in Svelte components.
|
|
17
|
+
|
|
10
18
|
## [6.2.2] - 2025-04-02
|
|
11
19
|
|
|
12
20
|
* Exclude `$state` rune in `svelte/prefer-const`.
|
package/bin/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soleil-se/eslint-config",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.4",
|
|
4
4
|
"description": "ESLint configuration for Sitevision apps and projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"./typescript": "./typescript.js",
|
|
23
23
|
"./config/base": "./config/base.js",
|
|
24
24
|
"./config/svelte": "./config/svelte.js",
|
|
25
|
-
"./rules/js":
|
|
26
|
-
"./rules/svelte":
|
|
25
|
+
"./rules/js":"./rules/js/index.js",
|
|
26
|
+
"./rules/svelte":"./rules/svelte/index.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"eslint-config-prettier": "^10.1.1",
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"eslint": ">= 9"
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
}
|
package/rules/svelte/style.js
CHANGED
|
@@ -15,6 +15,10 @@ export default {
|
|
|
15
15
|
'id',
|
|
16
16
|
// `name` attribute.
|
|
17
17
|
'name',
|
|
18
|
+
// `label` attribute.
|
|
19
|
+
'label',
|
|
20
|
+
// `description` attribute.
|
|
21
|
+
'description',
|
|
18
22
|
// `slot` attribute.
|
|
19
23
|
'slot',
|
|
20
24
|
// `--style-props` (Alphabetical order within the same group.)
|
|
@@ -26,7 +30,7 @@ export default {
|
|
|
26
30
|
// `class:` directives. (Alphabetical order within the same group.)
|
|
27
31
|
{ match: '/^class:/u', sort: 'alphabetical' },
|
|
28
32
|
// other attributes.
|
|
29
|
-
['!/:/u', '!/^(?:this|id|name|style|class)$/u', '!/^--/u'],
|
|
33
|
+
['!/:/u', '!/^(?:this|id|name|label|description|style|class)$/u', '!/^--/u'],
|
|
30
34
|
// `bind:` directives (other then `bind:this`), and `on:` directives.
|
|
31
35
|
['/^bind:/u', '!bind:this', '/^on:/u'],
|
|
32
36
|
// `use:` directives. (Alphabetical order within the same group.)
|
package/typescript.js
CHANGED
|
@@ -14,9 +14,18 @@ const svelteTypescript = {
|
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
const importSettings = {
|
|
18
|
+
settings: {
|
|
19
|
+
'import/resolver': {
|
|
20
|
+
typescript: true,
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
17
25
|
export default tseslint.config(
|
|
18
26
|
...base(),
|
|
19
27
|
tseslint.configs.recommended,
|
|
20
28
|
...await svelte(),
|
|
21
29
|
svelteTypescript,
|
|
30
|
+
importSettings,
|
|
22
31
|
);
|