Skip to content

Commit

Permalink
Propuesta de linter de estilos para social-network (#895)
Browse files Browse the repository at this point in the history
* agregando dependencias de stylelint

* agregando script de stylelint

* agregando stylelint config
  • Loading branch information
Danielalab authored and lupomontero committed Nov 6, 2019
1 parent a7895b1 commit 1c32978
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions projects/03-social-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"scripts": {
"htmlhint": "htmlhint dist/*.html ",
"eslint": "eslint --ext .js src/ test/",
"pretest": "npm run htmlhint && npm run eslint",
"stylelint": "stylelint --aei src/**/*.css",
"pretest": "npm run htmlhint && npm run eslint && npm run stylelint",
"test": "jest --coverage",
"start": "serve src/"
},
Expand All @@ -28,6 +29,8 @@
"htmlhint": "^0.11.0",
"jest": "^24.8.0",
"regenerator-runtime": "^0.13.1",
"serve": "^11.0.2"
"serve": "^11.0.2",
"stylelint": "^10.1.0",
"stylelint-config-recommended": "^2.2.0"
}
}
3 changes: 3 additions & 0 deletions projects/03-social-network/stylelint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: 'stylelint-config-recommended',
};

0 comments on commit 1c32978

Please sign in to comment.