Skip to content

Abramovick/eslint-config-last

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Your last ESLint config

eslint-config-last is an opinionated ESLint config which incorporates Prettier for even better code formatting and unification.

Usage

Yarn version:

  1. Add esling-config-last to your project: yarn add esling-config-last -D -E.
  2. Add peer dependencies: yarn add eslint babel-eslint prettier eslint-config-prettier eslint-plugin-prettier -D -E.
  3. Create .eslintrc.js configuration file:
module.exports = {
  extends: ['last'],
};
  1. Add lint scripts to package.json:
"scripts": {
  "lint": "yarn eslint -- .",
  "lint:fix": "yarn lint -- --fix"
}
  1. Run yarn lint to lint your code.
  2. Run yarn lint:fix to lint, format and fix your code.

About

Your last ESLint config combining sleekness of ESLint and power of Prettier

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%