@soleil-se/eslint-config 5.1.0 → 5.1.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/index.js +10 -4
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ Alla förändringar i detta repository antecknas här.
5
5
  Formatet baseras på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  och projektet använder [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [5.1.2] - 2023-10-26
9
+
10
+ - Uppdatera inställningarna för `max-len` i Svelte-filer då det bråkar med prettier.
11
+
12
+ ## [5.1.1] - 2023-08-22
13
+
14
+ - Lägg till undantag för Sveltes submoduler då import-pluginet inte kan resolva dessa trots att de finns tillgängliga.
15
+
8
16
  ## [5.1.0] - 2023-06-01
9
17
 
10
18
  - Lägg till varningar för API:er vars instanser inte borde importeras direkt utan skapas via andra API:er.
package/index.js CHANGED
@@ -23,7 +23,7 @@ module.exports = {
23
23
  json: 'always',
24
24
  },
25
25
  }],
26
- 'import/no-unresolved': [2, { ignore: ['#', '@sitevision/api/server', '@sitevision/api/common', '@sitevision/api/client'] }],
26
+ 'import/no-unresolved': [2, { ignore: ['#', '@sitevision/api/server', '@sitevision/api/common', '@sitevision/api/client', 'svelte/'] }],
27
27
  'import/prefer-default-export': 0,
28
28
  'object-curly-newline': ['error', {
29
29
  ObjectExpression: { minProperties: 8, multiline: true, consistent: true },
@@ -34,7 +34,14 @@ module.exports = {
34
34
  'no-console': [1, { allow: ['error'] }],
35
35
  'no-restricted-imports': restrictedImports,
36
36
  },
37
-
37
+ settings: {
38
+ svelte: {
39
+ // Ignore max-len in template and style, still works for script tags.
40
+ ignoreWarnings: [
41
+ 'max-len',
42
+ ],
43
+ },
44
+ },
38
45
  overrides: hasSvelte ? [{
39
46
  files: ['*.svelte'],
40
47
  extends: ['plugin:svelte/recommended', 'plugin:svelte/prettier']
@@ -79,14 +86,13 @@ module.exports = {
79
86
  'svelte/spaced-html-comment': 'warn',
80
87
  // Extension Rules
81
88
  'svelte/no-trailing-spaces': 'error',
82
- // Imports in style tags should be ignored, same value as airbnb-base.
89
+ // Same value as airbnb-base.
83
90
  'max-len': ['error', 100, 2, {
84
91
  ignoreUrls: true,
85
92
  ignoreComments: false,
86
93
  ignoreRegExpLiterals: true,
87
94
  ignoreStrings: true,
88
95
  ignoreTemplateLiterals: true,
89
- ignorePattern: '@import',
90
96
  }],
91
97
  },
92
98
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/eslint-config",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "description": "ESLint konfiguration för Sitevision utveckling",
5
5
  "author": "Soleil AB",
6
6
  "license": "UNLICENSED",