Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-last

neciu753MIT0.0.5

The last ESLint config you ever need :wink:

javascript, ecmascript, eslint, lint, config, prettier

readme

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 eslint-config-last to your project: yarn add eslint-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'],
    };
  4. Add lint scripts to package.json:
    "scripts": {
    "lint": "yarn eslint .",
    "lint:fix": "yarn lint --fix"
    }
  5. Run yarn lint to lint your code.
  6. Run yarn lint:fix to lint, format and fix your code.