Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-devjmetivier

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-devjmetivier

ESLint Config from Devin Metivier

  • 2.5.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

npm npm

Opinionated ESLint Setup

These are my settings for ESLint and Prettier for Eslint

If you like them, awesome. If not, change them up!

What this does

  • Lints JavaScript based on the latest standards
  • Fixes issues and formatting errors with Eslint + Prettier
  • Lints + Fixes JSX markup

Installing

You can use eslint globally and/or locally per project. It's usually best to install this locally once per project, that way you can have project specific settings as well as sync those settings with others working on your project via git.

Local / Per Project Install

  1. If you don't already have a package.json file, create one with npm init or yarn init.

  2. Install everything needed by the config:

    npm install eslint-config-devjmetivier or yarn add eslint-config-devjmetivier

  3. Create a .eslintrc file in the root of your project's directory (it should live where package.json does). Your .eslintrc file should look like this:

    {
      "extends": ["devjmetivier"]
    }
    

    Tip: You can alternatively put this object in your package.json under the property "eslintConfig":. This makes one less file in your project.

  4. You can add two scripts to your package.json to lint and/or fix:

    "scripts": {
      "lint": "eslint . --ext .js,.ts,.jsx,.tsx",
      "lint:fix": "eslint . --ext .js,.ts,.jsx,.tsx --fix"
    }
    
  5. Now you can manually lint your code by running npm run lint and fix all fixable issues with npm run lint:fix. You probably want your editor to do this automagically, though.

Keywords

FAQs

Package last updated on 10 Jun 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc