diff options
-rw-r--r-- | .stylelintrc.js | 26 | ||||
-rw-r--r-- | package.json | 24 |
2 files changed, 37 insertions, 13 deletions
diff --git a/.stylelintrc.js b/.stylelintrc.js new file mode 100644 index 00000000..b9937526 --- /dev/null +++ b/.stylelintrc.js @@ -0,0 +1,26 @@ +module.exports = { + extends: 'stylelint-config-recommended-scss', + rules: { + indentation: 'tab', + 'selector-type-no-unknown': null, + 'number-leading-zero': null, + 'rule-empty-line-before': [ + 'always', + { + ignore: ['after-comment', 'inside-block'] + } + ], + 'declaration-empty-line-before': [ + 'never', + { + ignore: ['after-declaration'] + } + ], + 'comment-empty-line-before': null, + 'selector-type-case': null, + 'selector-list-comma-newline-after': null, + 'no-descending-specificity': null, + 'string-quotes': 'single' + }, + plugins: ['stylelint-scss'] +} diff --git a/package.json b/package.json index d8331ee5..97cc70f3 100644 --- a/package.json +++ b/package.json @@ -26,13 +26,13 @@ "private": true, "main": "src/js/main.js", "scripts": { - "dev": "webpack --config webpack.dev.js", - "watch": "webpack --progress --watch --config webpack.dev.js", - "build": "webpack --progress --env.production --hide-modules --config webpack.prod.js", + "dev": "cross-env NODE_ENV=development webpack --config webpack.dev.js", + "watch": "cross-env NODE_ENV=development webpack --progress --watch --config webpack.dev.js", + "build": "cross-env NODE_ENV=production webpack --progress --hide-modules --config webpack.prod.js", "lint": "eslint --ext .js,.vue src", "lint:fix": "eslint --ext .js,.vue src --fix", - "test": "jest", - "test:coverage": "jest --coverage" + "stylelint": "stylelint src", + "stylelint:fix": "stylelint src --fix" }, "dependencies": { "@babel/runtime": "^7.7.7", @@ -47,8 +47,6 @@ "fibers": "^4.0.2", "lodash": "^4.17.15", "moment": "^2.23.0", - "sass": "^1.23.7", - "stylelint-scss": "^3.13.0", "v-click-outside": "^3.0.0", "v-tooltip": "^3.0.0-alpha.11", "vue": "^2.6.10", @@ -72,28 +70,28 @@ "babel-eslint": "^10.0.2", "babel-loader": "^8.0.6", "babel-preset-env": "^1.7.0", + "cross-env": "^6.0.3", "css-loader": "^3.4.0", - "eslint": "^6.7.2", + "eslint": "^6.8.0", "eslint-config-standard": "^14.1.0", - "eslint-friendly-formatter": "^4.0.1", "eslint-loader": "^3.0.3", "eslint-plugin-import": "^2.19.1", "eslint-plugin-node": "^11.0.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", - "eslint-plugin-vue": "^6.0.1", + "eslint-plugin-vue": "^6.1.2", "file-loader": "^5.0.2", - "mini-css-extract-plugin": "^0.9.0", "node-sass": "^4.13.0", "prettier-eslint": "^9.0.1", "raw-loader": "^4.0.0", "sass-loader": "^8.0.0", - "stylelint": "^12.0.0", + "stylelint": "^12.0.1", "stylelint-config-recommended-scss": "^4.0.0", + "stylelint-scss": "^3.13.0", "vue-loader": "^15.7.2", "vue-style-loader": "^4.1.1", "vue-template-compiler": "^2.6.10", - "webpack": "^4.41.4", + "webpack": "^4.41.5", "webpack-cli": "^3.3.10", "webpack-merge": "^4.1.5" } |