Git Product home page Git Product logo

eslint-config's Introduction

Entermedia Eslint Config

ESLint shareable config

Support Level

@entermedia-llc/eslint-config is a shareable configuration package for eslint.

Installation

  1. Install all peer dependencies
npx install-peerdeps --dev @entermedia-llc/eslint-config
  1. Install @entermedia-llc/eslint-config as a development dependency of your project:
npm install @entermedia-llc/eslint-config --save-dev

Available ESLint configs

@entermedia-llc/eslint-config

The default export contains common rules that are not specific to any framework or environment.

// eslintrc.js
module.exports = {
  extends: ["@entermedia-llc/eslint-config"],
};

@entermedia-llc/eslint-config/next

Extends @entermedia-llc/eslint-config adding specific rules to Next.

// eslintrc.js
module.exports = {
  extends: ["@entermedia-llc/eslint-config/next"],
};

Usage

In order to use this config, choose the one you want and add this configuration to your package.json:

{
  "eslintConfig": {
    "extends": "@entermedia-llc/eslint-config"
  }
}

Or add a .eslintrc.js file to your project root containing:

module.exports = {
  extends: ["@entermedia-llc/eslint-config"],
};

VSCode integration

We recommend turning on VSCode settings to automatically run eslint --fix on save.

"editor.codeActionsOnSave": {
   "source.fixAll.eslint": true,
}

This will automagically format your code once you save. You don't need VSCode prettier extension enabled or running on save as eslint will automatically run prettier for you.

Support Level

Active: Entermedia is actively working on this, and we expect to continue work for the foreseeable future. Bug reports, feature requests, questions, and pull requests are welcome.

eslint-config's People

Watchers

 avatar Ben Marshall avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.