Package Exports
- eslint-config-secretstache
- eslint-config-secretstache/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-secretstache) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-config-secretstache
Integrated ESLint, Prettier configuration package for standardizing code style across company projects
Install
npm install eslint-config-secretstacheUsage
Install ESlint by running the command: npm install eslint --save-dev. In your project, create or update the .eslintrc.js file.
module.exports = {
extends: ['secretstache']
};Installing Husky
Install lint-staged and husky by running just one command:
npx mrm@2 lint-stagedUpdate config in package.json:
"scripts": {
//other scripts omitted
"lint:fix": "eslint . --fix"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "npm run lint:fix"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}