@soleil-se/eslint-config 1.0.0 → 1.1.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/README.md +1 -0
- package/client.js +3 -0
- package/global.js +6 -0
- package/package.json +1 -1
- package/server-es6.js +3 -0
- package/vue.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ Alla förändringar i detta repository antecknas här.
|
|
|
4
4
|
Formatet baseras på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
och projektet använder [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [1.1.0] - 2020-01-21
|
|
8
|
+
### Ändrat
|
|
9
|
+
- Ändrat regeln `import/extensions` så den ignorerar paket, löser problem med import via alias.
|
|
10
|
+
|
|
7
11
|
## [1.0.0] - 2020-01-13
|
|
8
12
|
### Ändrat
|
|
9
13
|
- Uppdaterat till ESLint 6.
|
package/README.md
CHANGED
|
@@ -346,6 +346,7 @@ https://stackoverflow.com/questions/9976986/force-lf-eol-in-git-repo-and-working
|
|
|
346
346
|
### 8.1. Server - ES2015+
|
|
347
347
|
`import/no-unresolved` - För att kunna importera SiteVisions API:er utan fel.
|
|
348
348
|
`func-names` - Borde inte vara en varning, Airbnb tillåter anonyma funktioner.
|
|
349
|
+
`import/extensions` - `ignorePackages` är satt till `true` så import via alias ska fungera.
|
|
349
350
|
|
|
350
351
|
### 8.2. Client
|
|
351
352
|
`no-param-reassign` - Undantag för `state` i Vuex [mutations](https://vuex.vuejs.org/en/mutations.html).
|
package/client.js
CHANGED
package/global.js
CHANGED
|
@@ -30,6 +30,9 @@ module.exports = {
|
|
|
30
30
|
rules: {
|
|
31
31
|
'import/no-unresolved': 0,
|
|
32
32
|
'func-names': 0,
|
|
33
|
+
'import/extensions': ['error', 'never', {
|
|
34
|
+
ignorePackages: true
|
|
35
|
+
}],
|
|
33
36
|
},
|
|
34
37
|
settings: {
|
|
35
38
|
'import/resolver': {
|
|
@@ -94,6 +97,9 @@ module.exports = {
|
|
|
94
97
|
registeredComponentsOnly: true,
|
|
95
98
|
ignores: [],
|
|
96
99
|
}],
|
|
100
|
+
'import/extensions': ['error', 'never', {
|
|
101
|
+
ignorePackages: true
|
|
102
|
+
}],
|
|
97
103
|
},
|
|
98
104
|
settings: {
|
|
99
105
|
'import/resolver': {
|
package/package.json
CHANGED
package/server-es6.js
CHANGED