зеркало из https://github.com/nextcloud/cookbook.git
Make stylelint happy again
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
05f136b61b
Коммит
7cdb0c9db0
|
@ -1,19 +0,0 @@
|
|||
|
||||
plugins:
|
||||
- stylelint-scss
|
||||
|
||||
rules:
|
||||
"order/properties-alphabetical-order": null
|
||||
"selector-no-qualifying-type":
|
||||
- true
|
||||
- ignore:
|
||||
- attribute
|
||||
"selector-max-id": 1
|
||||
"max-nesting-depth": 2
|
||||
"selector-max-compound-selectors": 4
|
||||
|
||||
extends:
|
||||
- stylelint-config-standard
|
||||
- stylelint-config-sass-guidelines
|
||||
- stylelint-config-idiomatic-order
|
||||
- stylelint-config-prettier
|
|
@ -31,7 +31,6 @@
|
|||
"@nextcloud/moment": "^1.1.1",
|
||||
"@nextcloud/router": "^2.0.0",
|
||||
"@nextcloud/vue": "^5.1.0",
|
||||
"@nextcloud/webpack-vue-config": "^5.0.0",
|
||||
"linkifyjs": "^3.0.1",
|
||||
"lozad": "^1.16.0",
|
||||
"node-sass": "^7.0.0",
|
||||
|
@ -45,6 +44,8 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@nextcloud/stylelint-config": "^2.1.2",
|
||||
"@nextcloud/webpack-vue-config": "^5.0.0",
|
||||
"babel-loader": "^8.1.0",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
"compression-webpack-plugin": "^9.0.0",
|
||||
|
|
|
@ -456,8 +456,8 @@ export default {
|
|||
|
||||
/* stylelint-disable selector-class-pattern */
|
||||
>>> .app-navigation-entry
|
||||
.app-navigation-entry__children
|
||||
.app-navigation-entry {
|
||||
.app-navigation-entry__children
|
||||
.app-navigation-entry {
|
||||
/* Let's not waste space in front of the recipe if we're only using the icon to show loading */
|
||||
padding-left: 0;
|
||||
}
|
||||
|
|
|
@ -84,10 +84,10 @@ fieldset > label {
|
|||
|
||||
/* stylelint-disable selector-class-pattern,selector-max-compound-selectors */
|
||||
#app
|
||||
.edit-multiselect
|
||||
.multiselect__tags
|
||||
.multiselect__tags-wrap
|
||||
.multiselect__tag {
|
||||
.edit-multiselect
|
||||
.multiselect__tags
|
||||
.multiselect__tags-wrap
|
||||
.multiselect__tag {
|
||||
flex-basis: 50px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
const stylelintConfig = require('@nextcloud/stylelint-config')
|
||||
|
||||
stylelintConfig.rules.indentation = 4
|
||||
stylelintConfig.rules['string-quotes'] = 'double'
|
||||
stylelintConfig.rules['selector-list-comma-newline-after'] = 'always-multi-line'
|
||||
|
||||
module.exports = stylelintConfig
|
Загрузка…
Ссылка в новой задаче