* Add stylelint

* Pinn dependencies

* Make fix command work

No double colons are allowed in npm commands.
This commit is contained in:
Jonathan Belcher 2018-10-30 08:56:22 -04:00 committed by GitHub
parent 4dae75d1fb
commit d260205c11
3 changed files with 906 additions and 23 deletions

View File

@ -0,0 +1,17 @@
{
"extends": "stylelint-config-wordpress",
"rules": {
"at-rule-empty-line-before": null,
"at-rule-no-unknown": null,
"comment-empty-line-before": null,
"declaration-block-no-duplicate-properties": null,
"declaration-property-unit-whitelist": null,
"font-weight-notation": null,
"max-line-length": null,
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"rule-empty-line-before": null,
"selector-class-pattern": null,
"value-keyword-case": null
}
}

File diff suppressed because it is too large Load Diff

View File

@ -23,6 +23,8 @@
"i18n:check": "grunt checktextdomain",
"i18n": "npm run -s i18n:js && npm run -s i18n:php && npm run -s i18n:check && npm run -s i18n:pot",
"lint": "npm run lint:js",
"lint:css": "stylelint '**/*.scss'",
"lint:css-fix": "stylelint '**/*.scss' --fix",
"lint:js": "npm run -s install-if-deps-outdated && eslint client --ext=js,jsx",
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"lint:php-fix": "./vendor/bin/phpcbf --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
@ -85,8 +87,8 @@
"history": "4.7.2",
"html-to-react": "1.3.3",
"husky": "1.1.2",
"marked": "0.5.1",
"interpolate-components": "1.1.1",
"marked": "0.5.1",
"node-sass": "4.9.4",
"postcss-color-function": "4.0.1",
"postcss-loader": "3.0.0",
@ -104,6 +106,8 @@
"recast": "0.16.0",
"sass-loader": "7.1.0",
"style-loader": "0.23.1",
"stylelint": "9.7.0",
"stylelint-config-wordpress": "13.1.0",
"webpack": "4.23.1",
"webpack-cli": "3.1.2"
},