Last active
August 8, 2021 03:58
-
-
Save jamiemagique/d3b84256c7218c234cd9dc34509f94a7 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 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 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 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