/eslint-config

Common ESLint configuration for JavaScript/TypeScript modules maintained by @malept

Primary LanguageJavaScriptApache License 2.0Apache-2.0

@malept/eslint-config

Common ESLint configuration for JavaScript/TypeScript modules maintained by @malept.

Usage

To install this ESLint configuration and its (base) peer dependencies:

# npm
npm install --save-dev @malept/eslint-config eslint eslint-plugin-{ava,import,node,prettier,promise} prettier
# yarn 1
yarn add --dev @malept/eslint-config eslint eslint-plugin-{ava,import,node,prettier,promise} prettier

Peer dependencies (see package.json for version details):

  • eslint
  • eslint-plugin-ava
  • eslint-plugin-import
  • eslint-plugin-node
  • eslint-plugin-prettier
  • eslint-plugin-promise
  • prettier (due to eslint-plugin-prettier)

JavaScript

Usage example:

{
  extends: [
    // ...
    '@malept'
  ]
}

TypeScript

Additional peer dependencies (see package.json for version details):

  • @typescript-eslint/eslint-plugin
  • eslint-plugin-tsdoc

Usage example:

{
  extends: [
    // ...
    '@malept/eslint-config/typescript'
  ]
}

License

Apache 2.0