1.0.5 • Published 2 years ago

@entermedia-llc/eslint-config v1.0.5

Weekly downloads
-
License
GPL-2.0+
Repository
github
Last release
2 years ago

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.

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago