ESLint config used by AndreMarquesDev
- Install the package:
npm install --dev eslint-config-andremarquesdev
or
yarn add --dev eslint-config-andremarquesdev
- Create a
.eslintrc.js
file in the root of your project's directory (it should live where package.json does). It should look like this:
module.exports = {
extends: [
'andremarquesdev',
],
};
- You can add two scripts to your package.json to lint and/or fix:
"scripts": {
"lint": "eslint . --ext .js,.ts,.tsx",
"lint:fix": "eslint . --ext .js,.ts,.tsx --fix"
},
- Manually increment the
version
field in package.json; - Commit the changes, including the package.json change mentioned in the previous step;
- Create a new git tag with
git tag <version>
; - Push the commit as usual;
- Push the new tag with
git push origin --tags
; - Run
yarn npm publish
.
André Marques
Website
GitHub
CodePen
Twitter
MIT