Commit 994006f527aeb51616d3c065cc3b89ef2544fbc2

Authored by Geremia Taglialatela
1 parent 291634c1

Add stylelint

... ... @@ -100,6 +100,7 @@
100 100 "copy-webpack-plugin": "^3.0.1",
101 101 "cross-env": "^3.2.4",
102 102 "css-loader": "^0.25.0",
  103 + "directory-tree": "^2.1.0",
103 104 "eslint": "^3.4.0",
104 105 "eslint-config-angular": "^0.5.0",
105 106 "eslint-loader": "^1.5.0",
... ... @@ -112,6 +113,7 @@
112 113 "html-minifier-loader": "^1.3.4",
113 114 "html-webpack-plugin": "^2.30.1",
114 115 "img-loader": "^1.3.1",
  116 + "jsonminify": "^0.4.1",
115 117 "less": "^2.7.1",
116 118 "less-loader": "^2.2.3",
117 119 "ng-annotate-loader": "^0.1.1",
... ... @@ -122,14 +124,18 @@
122 124 "react-hot-loader": "^3.0.0-beta.6",
123 125 "sass-loader": "^4.0.2",
124 126 "style-loader": "^0.13.1",
  127 + "stylelint": "^9.5.0",
  128 + "stylelint-config-recommended-scss": "^3.2.0",
  129 + "stylelint-config-standard": "^18.2.0",
  130 + "stylelint-order": "^1.0.0",
  131 + "stylelint-scss": "^3.3.0",
  132 + "stylelint-webpack-plugin": "^0.10.5",
125 133 "url-loader": "^0.5.7",
126 134 "webpack": "^1.13.2",
127 135 "webpack-dev-middleware": "^1.6.1",
128 136 "webpack-dev-server": "^1.15.1",
129 137 "webpack-hot-middleware": "^2.12.2",
130   - "webpack-material-design-icons": "^0.1.0",
131   - "directory-tree": "^2.1.0",
132   - "jsonminify": "^0.4.1"
  138 + "webpack-material-design-icons": "^0.1.0"
133 139 },
134 140 "engine": "node >= 5.9.0",
135 141 "nyc": {
... ...
... ... @@ -18,6 +18,8 @@
18 18 const HtmlWebpackPlugin = require('html-webpack-plugin');
19 19 const ExtractTextPlugin = require('extract-text-webpack-plugin');
20 20 const CopyWebpackPlugin = require('copy-webpack-plugin');
  21 +const StyleLintPlugin = require('stylelint-webpack-plugin')
  22 +
21 23 const webpack = require('webpack');
22 24 const path = require('path');
23 25 const dirTree = require('directory-tree');
... ... @@ -76,6 +78,7 @@ module.exports = {
76 78 title: 'ThingsBoard',
77 79 inject: 'body',
78 80 }),
  81 + new StyleLintPlugin(),
79 82 new webpack.optimize.OccurrenceOrderPlugin(),
80 83 new webpack.NoErrorsPlugin(),
81 84 new ExtractTextPlugin('style.[contentHash].css', {
... ...