eslint-config-latest
v1.1.1
Published
The latest ESLint config combining sleekness of ESLint and power of Prettier
Downloads
24
Maintainers
Readme
ESLint Config Latest
eslint-config-latest
is the complete & latest ESLint configuration imcorporating Prettier for even better code formatting & unification. It also covers React, providing linting solution for your react code out of the box.
Support for testing frameworks mocha
& jest
. Also, no more semi-colons & it's okay!
The installation & usage is pretty simple & it's also fully customizable.
Usage
- Download the npm version of
eslint-config-latest
add it to your project.
npm i -D eslint-config-latest
- Create a
.eslintrc.js
config file:
module.exports = {
extends: ["latest"]
}
- Then, add lint scripts to
package.json
:
"scripts": {
"lint": "eslint . --ext .js, .jsx, .ts, .tsx",
"lint:fix": "eslint --fix . --ext .js, .jsx, .ts, .tsx"
}
- Run
npm run lint
to lint your code - Run
npm run lint:fix
to lint, format and fix the code - If you want to disable any rules or create an exception, just mention it at the top of your file.
/*eslint no-undef: 0*/
Or you can configure the .eslintrc.js
& add new rules.
Happy linting! 👍