@swissgeo/config-stylelint 1.0.0-beta.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/index.js +36 -0
- package/package.json +25 -0
- package/stylelint.config.js +3 -0
- package/tsconfig.json +4 -0
package/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
extends: ['stylelint-config-recommended-vue', 'stylelint-config-recommended-scss'],
|
|
3
|
+
plugins: ['stylelint-scss', 'stylelint-order'],
|
|
4
|
+
overrides: [
|
|
5
|
+
{
|
|
6
|
+
files: ['**/*.vue'],
|
|
7
|
+
customSyntax: 'postcss-html',
|
|
8
|
+
},
|
|
9
|
+
],
|
|
10
|
+
rules: {
|
|
11
|
+
// Deactivating rule to allow duplicate selectors to follow the new sass expected behaviour https://sass-lang.com/documentation/at-rules/mixin/
|
|
12
|
+
'no-duplicate-selectors': null,
|
|
13
|
+
'property-no-unknown': [
|
|
14
|
+
true,
|
|
15
|
+
{
|
|
16
|
+
// Deactivating rule to allow unknown properties in :export selectors
|
|
17
|
+
ignoreSelectors: [':export'],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
'declaration-property-value-no-unknown': [
|
|
21
|
+
true,
|
|
22
|
+
{
|
|
23
|
+
ignoreProperties: {
|
|
24
|
+
'/.+/': '/$/', // ignore variables with a $ (i have not found a way to make it work only if the $ is at the beginning since "/^\\$/" does not work at all)
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
'selector-pseudo-class-no-unknown': [
|
|
29
|
+
// Deactivating rule to allow pseudo classes like :global
|
|
30
|
+
true,
|
|
31
|
+
{
|
|
32
|
+
ignorePseudoClasses: ['global', 'export', 'deep'],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@swissgeo/config-stylelint",
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
|
+
"description": "Shared Stylelint config for SWISSGEO projects.",
|
|
5
|
+
"license": "BSD-3-Clause",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"publish": "npm publish --access public --tag next"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"stylelint-config-recommended-scss": "catalog:",
|
|
13
|
+
"stylelint-config-recommended-vue": "catalog:",
|
|
14
|
+
"stylelint-order": "catalog:",
|
|
15
|
+
"stylelint-scss": "catalog:"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@swissgeo/config-typescript": "workspace:*",
|
|
19
|
+
"typescript": "catalog:"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"postcss-html": "catalog:",
|
|
23
|
+
"stylelint": "catalog:"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/tsconfig.json
ADDED