Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 3.35 KB

README.md

File metadata and controls

74 lines (55 loc) · 3.35 KB

eslint-config-andremarquesdev

npm npm bundle size npm peer dependency version GitHub license GitHub last commit

ESLint config used by AndreMarquesDev

Supports

ESLint Badge JavaScript Badge Typescript Badge React Badge React Hooks Badge Prettier Badge Jest Badge Testing Library Badge

How to use

  1. Install the package:
npm install --dev eslint-config-andremarquesdev

or

yarn add --dev eslint-config-andremarquesdev
  1. 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',
    ],
};
  1. 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"
},

How to publish to npm

  1. Manually increment the version field in package.json;
  2. Commit the changes, including the package.json change mentioned in the previous step;
  3. Create a new git tag with git tag <version>;
  4. Push the commit as usual;
  5. Push the new tag with git push origin --tags;
  6. Run yarn npm publish.

Author

André Marques
Website
GitHub
CodePen
Twitter

License

MIT