Skip to content

Commit c27e198

Browse files
committed
Updated styleint configuraiton
1 parent 65e8952 commit c27e198

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

src/main/js/index.js

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,12 @@ var postcss_each = require('postcss-each');
88
var postcss_reporter = require('postcss-reporter');
99
var autoprefixer = require('autoprefixer');
1010
var stylelint = require('stylelint');
11-
var styleline_config = require('stylelint-config-standard');
11+
var stylelint_config = require('stylelint-config-standard');
1212

1313
var PLI = require('superfly-css-pli');
1414

15-
// Stylelint configuration
16-
var stylelintConfig = {
17-
"rules": {
18-
"block-no-empty": 2,
19-
"color-no-invalid-hex": 2,
20-
"declaration-colon-space-after": [2, "always"],
21-
"declaration-colon-space-before": [2, "never"],
22-
"function-comma-space-after": [2, "always"],
23-
"function-url-quotes": [2, "double"],
24-
"media-feature-colon-space-after": [2, "always"],
25-
"media-feature-colon-space-before": [2, "never"],
26-
"media-feature-name-no-vendor-prefix": 2,
27-
"no-multiple-empty-lines": 2,
28-
"number-leading-zero": [2, "always"],
29-
"property-no-vendor-prefix": 2,
30-
"rule-no-duplicate-properties": 2,
31-
"rule-trailing-semicolon": [2, "always"],
32-
"selector-no-id": 2,
33-
"string-quotes": [2, "double"],
34-
"value-no-vendor-prefix": 2
35-
}
36-
};
3715

38-
var processors = [stylelint(styleline_config), postcss_import, postcss_each, autoprefixer, postcss_custom_properties, postcss_calc, postcss_color_function, postcss_reporter({
16+
var processors = [stylelint(stylelint_config), postcss_import, postcss_each, autoprefixer, postcss_custom_properties, postcss_calc, postcss_color_function, postcss_reporter({
3917
clearMessages: true
4018
})];
4119

0 commit comments

Comments
 (0)