chore(v2): add stylelint (#2361)

* Add stylelint

* Add custom stylelint plugin for copyright

* Add stylelint to FB template
This commit is contained in:
Scott Lee 2020-03-06 04:10:26 -08:00 committed by GitHub
parent 4aee06e74f
commit ae78c1e6dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 1462 additions and 36 deletions

View file

@ -0,0 +1,6 @@
{
"plugins": ["../../..//stylelint-copyright/index.js"],
"rules": {
"plugin/stylelint-copyright": true
}
}

View file

@ -8,7 +8,7 @@
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"ci": "yarn lint && yarn prettier:diff",
"lint": "eslint --cache \"**/*.js\"",
"lint": "eslint --cache \"**/*.js\" && stylelint \"**/*.css\"",
"prettier": "prettier --config .prettierrc --write \"**/*.{js,md}\"",
"prettier:diff": "prettier --config .prettierrc --list-different \"**/*.{js,md}\""
},
@ -17,7 +17,8 @@
"@docusaurus/preset-classic": "^2.0.0-alpha.43",
"classnames": "^2.2.6",
"react": "^16.8.4",
"react-dom": "^16.8.4"
"react-dom": "^16.8.4",
"stylelint": "^13.2.0"
},
"devDependencies": {
"babel-eslint": "^10.0.3",