Common ESLint configuration for JavaScript/TypeScript modules maintained by
@malept
.
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 toeslint-plugin-prettier
)
Usage example:
{
extends: [
// ...
'@malept'
]
}
Additional peer dependencies (see package.json
for version details):
@typescript-eslint/eslint-plugin
eslint-plugin-tsdoc
Usage example:
{
extends: [
// ...
'@malept/eslint-config/typescript'
]
}