Socket
Socket
Sign inDemoInstall

eslint-config-last

Package Overview
Dependencies
132
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-last

The last ESLint config you ever need :wink:


Version published
Weekly downloads
296
decreased by-5.13%
Maintainers
1
Install size
16.3 kB
Created
Weekly downloads
 

Readme

Source

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'],
};
  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.

Keywords

FAQs

Last updated on 29 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc