@aduth/eslint-config

4.4.1 • Public • Published

@aduth/eslint-config

Andrew Duthie's personal ESLint configurations.

Installation

npm install --save-dev eslint @aduth/eslint-config

eslint is a peer dependency of these configurations and must be installed in your project.

The following peer dependencies are optional and will enable additional rules when present:

  • JSDoc: eslint-plugin-jsdoc
  • Prettier: eslint-plugin-prettier and eslint-config-prettier
  • TypeScript: @typescript-eslint/eslint-plugin and @typescript-eslint/parser

Usage

{
	"extends": "@aduth/eslint-config"
}

Refer to the ESLint guide on Extending Configuration Files.

The configuration includes only rules. You will need to provide environment and plugin settings as appropriate.

Variations

The default configuration is optimized for ES2015+. The following variations are available:

  • @aduth/eslint-config/base: Minimal subset of common rules
  • @aduth/eslint-config/esnext: Rules optimized for ES2015+
  • @aduth/eslint-config/es5: Rules optimized for ES5 only (assigns parserOption.ecmaVersion: 5)

License

Copyright 2021 Andrew Duthie

Released under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @aduth/eslint-config

Weekly Downloads

5

Version

4.4.1

License

MIT

Unpacked Size

14.1 kB

Total Files

12

Last publish

Collaborators

  • aduth