css: add stylelint.

This commit is contained in:
evazion
2019-10-01 23:38:15 -05:00
parent c17d95309a
commit 60eaa99784
3 changed files with 977 additions and 15 deletions

13
.stylelintrc.yml Normal file
View File

@@ -0,0 +1,13 @@
extends: "stylelint-config-standard"
rules:
at-rule-empty-line-before: null
at-rule-no-unknown: [true, ignoreAtRules: [extend, include, mixin]]
color-hex-case: null
color-hex-length: null
comment-empty-line-before: null
comment-whitespace-inside: null
custom-property-empty-line-before: null
declaration-colon-space-after: null
declaration-empty-line-before: null
no-descending-specificity: null
selector-list-comma-newline-after: always-multi-line

View File

@@ -20,6 +20,8 @@
"eslint": "^6.0.0",
"eslint-loader": "^2.2.0",
"eslint-plugin-ignore-erb": "^0.1.1",
"stylelint": "^11.0.0",
"stylelint-config-standard": "^19.0.0",
"webpack-dev-server": "^3.8.0"
},
"browserslist": [
@@ -27,6 +29,7 @@
"since 2012"
],
"scripts": {
"lint": "yarn run eslint --plugin eslint-plugin-ignore-erb --ext .js,.js.erb app/javascript/src/javascripts"
"eslint-all": "yarn run eslint --plugin eslint-plugin-ignore-erb --ext .js,.js.erb app/javascript/src/javascripts",
"stylelint-all": "yarn run stylelint 'app/javascript/src/styles/**/*.scss'"
}
}

974
yarn.lock

File diff suppressed because it is too large Load Diff