@soleil-se/eslint-config 3.0.0 → 3.0.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/CHANGELOG.md +7 -0
- package/docs/structure.md +14 -23
- package/package.json +2 -2
- package/shared/client.js +1 -1
- package/shared/server.js +1 -0
- package/shared/universal.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ 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
|
+
## [3.0.1] - 2022-02-07
|
|
9
|
+
|
|
10
|
+
### Ändrat
|
|
11
|
+
|
|
12
|
+
- Ignorera `import/no-unresolved` för importer som börjar med `@sitevision/api/server`,
|
|
13
|
+
`@sitevision/api/common` och `@sitevision/api/client` då alla API:er inte finns dokumenterade.
|
|
14
|
+
|
|
8
15
|
## [3.0.0] - 2022-02-07
|
|
9
16
|
|
|
10
17
|
### Ändrat
|
package/docs/structure.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Projectstruktur
|
|
2
|
+
|
|
2
3
|
Här finns exempel var konfigurationsfilerna bör ligga.
|
|
3
4
|
|
|
4
5
|
<!-- TOC -->
|
|
@@ -10,25 +11,17 @@ Här finns exempel var konfigurationsfilerna bör ligga.
|
|
|
10
11
|
<!-- /TOC -->
|
|
11
12
|
|
|
12
13
|
## Global
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
Ett projekt som kör `@soleil/sv-gulp-build@^3.0.0` eller `@soleil/sv-project-build` och inläsning global config.
|
|
16
|
+
|
|
14
17
|
```
|
|
15
18
|
<sitevision_projekt>
|
|
16
19
|
|
|
|
17
20
|
+---- server_src
|
|
18
21
|
| |
|
|
19
22
|
| +---- snippets
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
| |
|
|
23
|
-
| +---- webapps
|
|
24
|
-
| |
|
|
25
|
-
| +---- apps
|
|
26
|
-
| |
|
|
27
|
-
| +---- App
|
|
28
|
-
| |
|
|
29
|
-
| +---- src
|
|
30
|
-
| |
|
|
31
|
-
| +---- .eslintrc.js (@soleil/eslint-config-sitevision/server-legacy)
|
|
23
|
+
| |
|
|
24
|
+
| +---- .eslintrc.js (@soleil/eslint-config-sitevision/server-legacy)
|
|
32
25
|
|
|
|
33
26
|
+---- .eslintrc.js (@soleil/eslint-config-sitevision/global)
|
|
34
27
|
|
|
@@ -37,19 +30,20 @@ Ett projekt som kör `@soleil/sv-gulp-build@^3.0.0` och inläsning global config
|
|
|
37
30
|
## WebApp
|
|
38
31
|
|
|
39
32
|
I en fristående WebApp.
|
|
33
|
+
|
|
40
34
|
```
|
|
41
35
|
MyWebApp
|
|
42
36
|
|
|
|
43
|
-
+----
|
|
44
|
-
|
|
|
45
|
-
+---- app_src
|
|
37
|
+
+---- src
|
|
46
38
|
|
|
|
47
39
|
+---- .eslintrc.js (@soleil/eslint-config-sitevision/webapp)
|
|
48
40
|
|
|
49
41
|
```
|
|
42
|
+
|
|
50
43
|
## Enskilda filer
|
|
51
44
|
|
|
52
|
-
Ett projekt som kör `@soleil/sv-gulp-build@^3.0.0` och inläsning av enskilda config-filer.
|
|
45
|
+
Ett projekt som kör `@soleil/sv-gulp-build@^3.0.0` eller `@soleil/sv-project-build` och inläsning av enskilda config-filer.
|
|
46
|
+
|
|
53
47
|
```
|
|
54
48
|
<sitevision_projekt>
|
|
55
49
|
|
|
|
@@ -85,16 +79,13 @@ Ett projekt som kör `@soleil/sv-gulp-build@^3.0.0` och inläsning av enskilda c
|
|
|
85
79
|
|
|
|
86
80
|
+---- apps
|
|
87
81
|
|
|
|
88
|
-
+---- App
|
|
89
|
-
|
|
|
90
|
-
+---- src
|
|
91
|
-
| |
|
|
92
|
-
| +---- .eslintrc.js (@soleil/eslint-config-sitevision/server-legacy)
|
|
82
|
+
+---- App
|
|
93
83
|
|
|
|
94
84
|
+---- .eslintrc.js (@soleil/eslint-config-sitevision/webapp)
|
|
95
|
-
```
|
|
85
|
+
```
|
|
96
86
|
|
|
97
87
|
Ett projekt som kör `@soleil/sv-gulp-build@^2.0.0`
|
|
88
|
+
|
|
98
89
|
```
|
|
99
90
|
<sitevision_projekt>
|
|
100
91
|
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soleil-se/eslint-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Settings for ESLint in a SiteVision project",
|
|
5
5
|
"author": "Soleil AB",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"private": false,
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://docs.soleilit.se/03.packages/@soleil&@soleil-se/eslint-config",
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"eslint": "^8.8.0",
|
|
11
11
|
"eslint-config-airbnb-base": "^15.0.0",
|
package/shared/client.js
CHANGED
|
@@ -19,7 +19,7 @@ module.exports = {
|
|
|
19
19
|
props: true,
|
|
20
20
|
ignorePropertyModificationsFor: ['state'],
|
|
21
21
|
}],
|
|
22
|
-
'import/no-unresolved': [2, { ignore: ['#'] }],
|
|
22
|
+
'import/no-unresolved': [2, { ignore: ['#', '@sitevision/api/common', '@sitevision/api/client'] }],
|
|
23
23
|
'import/prefer-default-export': 0,
|
|
24
24
|
'object-curly-newline': ['error', {
|
|
25
25
|
ObjectExpression: { minProperties: 8, multiline: true, consistent: true },
|
package/shared/server.js
CHANGED
|
@@ -21,6 +21,7 @@ module.exports = {
|
|
|
21
21
|
json: 'always',
|
|
22
22
|
},
|
|
23
23
|
}],
|
|
24
|
+
'import/no-unresolved': [2, { ignore: ['#', '@sitevision/api/server', '@sitevision/api/common'] }],
|
|
24
25
|
'import/prefer-default-export': 0,
|
|
25
26
|
'object-curly-newline': ['error', {
|
|
26
27
|
ObjectExpression: { minProperties: 8, multiline: true, consistent: true },
|
package/shared/universal.js
CHANGED
|
@@ -21,7 +21,7 @@ module.exports = {
|
|
|
21
21
|
props: true,
|
|
22
22
|
ignorePropertyModificationsFor: ['state'],
|
|
23
23
|
}],
|
|
24
|
-
'import/no-unresolved': [2, { ignore: ['#'] }],
|
|
24
|
+
'import/no-unresolved': [2, { ignore: ['#', '@sitevision/api/server', '@sitevision/api/common', '@sitevision/api/client'] }],
|
|
25
25
|
'import/prefer-default-export': 0,
|
|
26
26
|
'object-curly-newline': ['error', {
|
|
27
27
|
ObjectExpression: { minProperties: 8, multiline: true, consistent: true },
|