Skip to content

Commit

Permalink
Add stylelint. (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Comas authored and fubhy committed May 13, 2018
1 parent a54f5a8 commit 6b73768
Show file tree
Hide file tree
Showing 3 changed files with 785 additions and 19 deletions.
3 changes: 3 additions & 0 deletions frontend/.stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
extends: "stylelint-config-standard"
}
12 changes: 8 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
"test": "NODE_ENV=test jest",
"test:watch": "NODE_ENV=test jest --watch",
"test:coverage": "NODE_ENV=test jest --coverage",
"format": "yarn format:ts && yarn format:js",
"format": "yarn format:ts && yarn format:js && yarn format:css",
"format:base":
"prettier --trailing-comma es5 --single-quote --ignore-path .gitignore",
"format:ts":
"yarn format:base --parser typescript --write \"**/*.{ts,tsx}\" \"!{dist,coverage}/**/*\"",
"format:js":
"yarn format:base --write \"**/*.{js,jsx,json,gql,graphql}\" \"!{dist,coverage}/**/*\""
"yarn format:base --write \"**/*.{js,jsx,json,gql,graphql}\" \"!{dist,coverage}/**/*\"",
"format:css": "stylelint '**/*.css'"
},
"lint-staged": {
"*.{js,jsx,json,gql,graphql}": [
Expand All @@ -34,7 +35,8 @@
"tslint -p tsconfig.json --fix",
"prettier --parser typescript --trailing-comma es5 --single-quote --write",
"git add"
]
],
"*.css": ["stylelint '**/*.css' --fix"]
},
"dependencies": {
"apollo-cache-inmemory": "^1.1.12",
Expand All @@ -51,7 +53,9 @@
"ramda": "^0.25.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"recompose": "^0.26.0"
"recompose": "^0.26.0",
"stylelint": "^9.2.0",
"stylelint-config-standard": "^18.2.0"
},
"devDependencies": {
"@types/jest": "^22.1.3",
Expand Down
Loading

0 comments on commit 6b73768

Please sign in to comment.