1.1.1 • Published 2 years ago
eslint-config-latest v1.1.1
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-latestadd it to your project.
npm i -D eslint-config-latest- Create a
.eslintrc.jsconfig 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 lintto lint your code - Run
npm run lint:fixto 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! 👍

