@soleil-se/eslint-config 5.2.0 → 5.3.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/CHANGELOG.md +4 -0
- package/index.js +17 -1
- package/package.json +1 -1
- package/setup.js +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ Alla förändringar i detta repository antecknas här.
|
|
|
7
7
|
Formatet baseras på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
8
8
|
och projektet använder [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
9
9
|
|
|
10
|
+
## [5.3.0] - 2024-10-21
|
|
11
|
+
|
|
12
|
+
* Justerat regler för `prefer-const` och `max-len` för att fungera bättre med Svelte 5.
|
|
13
|
+
|
|
10
14
|
## [5.2.0] - 2024-06-03
|
|
11
15
|
|
|
12
16
|
* Nytt kommando för att installera dependencies och skapa konfigurationsfiler, `npx @soleil/eslint-config-sitevision --setup`.
|
package/index.js
CHANGED
|
@@ -33,6 +33,13 @@ module.exports = {
|
|
|
33
33
|
}],
|
|
34
34
|
'no-console': [1, { allow: ['error'] }],
|
|
35
35
|
'no-restricted-imports': restrictedImports,
|
|
36
|
+
'max-len': ['error', 100, 2, {
|
|
37
|
+
ignoreUrls: true,
|
|
38
|
+
ignoreComments: true,
|
|
39
|
+
ignoreRegExpLiterals: true,
|
|
40
|
+
ignoreStrings: true,
|
|
41
|
+
ignoreTemplateLiterals: true,
|
|
42
|
+
}],
|
|
36
43
|
},
|
|
37
44
|
settings: {
|
|
38
45
|
svelte: {
|
|
@@ -89,16 +96,25 @@ module.exports = {
|
|
|
89
96
|
// Same value as airbnb-base.
|
|
90
97
|
'max-len': ['error', 100, 2, {
|
|
91
98
|
ignoreUrls: true,
|
|
92
|
-
ignoreComments:
|
|
99
|
+
ignoreComments: true,
|
|
93
100
|
ignoreRegExpLiterals: true,
|
|
94
101
|
ignoreStrings: true,
|
|
95
102
|
ignoreTemplateLiterals: true,
|
|
96
103
|
}],
|
|
104
|
+
// Do not enforce const because of reactivity for runes in Svelte 5.
|
|
105
|
+
'prefer-const': 0,
|
|
97
106
|
},
|
|
98
107
|
}, {
|
|
99
108
|
files: ['svelte.config.js'],
|
|
100
109
|
rules: {
|
|
101
110
|
'import/no-extraneous-dependencies': 0,
|
|
102
111
|
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
files: ['*.svelte.js, *.svelte.ts'],
|
|
115
|
+
rules: {
|
|
116
|
+
// Do not enforce const because of reactivity for runes in Svelte 5.
|
|
117
|
+
'prefer-const': 0,
|
|
118
|
+
},
|
|
103
119
|
}] : [],
|
|
104
120
|
};
|
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -5,13 +5,12 @@ const { name, version } = require('./package.json');
|
|
|
5
5
|
|
|
6
6
|
const dependencies = {
|
|
7
7
|
[name]: `^${version}`,
|
|
8
|
-
eslint: '^8.57.
|
|
8
|
+
eslint: '^8.57.1',
|
|
9
9
|
'eslint-config-airbnb-base': '^15.0.0',
|
|
10
|
-
'eslint-plugin-import': '^2.
|
|
11
|
-
'eslint-plugin-svelte': '^2.
|
|
10
|
+
'eslint-plugin-import': '^2.31.0',
|
|
11
|
+
'eslint-plugin-svelte': '^2.46.0',
|
|
12
12
|
'eslint-config-prettier': '^9.1.0',
|
|
13
13
|
'svelte-preprocess': '^5.1.4',
|
|
14
|
-
svelte: '^4.2.17',
|
|
15
14
|
};
|
|
16
15
|
|
|
17
16
|
const eslintConfigFileContent = `module.exports = {
|