-
-
Save cristinafsanz/d8491d205c884e3f4b8b41f0c41b5b5c to your computer and use it in GitHub Desktop.
Pre commit JS and SCSS fixing via Husky, Lint-Staged and StyleLint with AirBnB linting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "parser": "babel-eslint", | |
| "env": { | |
| "browser": true, | |
| "node": true | |
| }, | |
| "extends": "airbnb", | |
| "rules": { | |
| "no-console":0, | |
| "nomen": 0 | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "extends": "stylelint-config-standard" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "example", | |
| "version": "1.0.0", | |
| "description": "example", | |
| "repository": "", | |
| "author": "", | |
| "license": "", | |
| "main": "dist/index.js", | |
| "scripts": { | |
| "precommit": "lint-staged" | |
| }, | |
| "lint-staged": { | |
| "**/*.js": [ | |
| "eslint --fix", | |
| "git add" | |
| ], | |
| "**/*.scss": [ | |
| "stylefmt", | |
| "stylelint --syntax scss", | |
| "git add" | |
| ] | |
| }, | |
| "devDependencies": { | |
| "babel-eslint": "^7.2.3", | |
| "eslint": "^3.19.0", | |
| "eslint-config-airbnb": "^15.0.1", | |
| "eslint-plugin-import": "^2.2.0", | |
| "eslint-plugin-jsx-a11y": "^5.0.3", | |
| "eslint-watch": "^3.1.0", | |
| "husky": "^0.13.4", | |
| "lint-staged": "^3.6.1", | |
| "stylefmt": "^6.0.0", | |
| "stylelint": "^7.11.0", | |
| "stylelint-config-standard": "^16.0.0", | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment