@smcv/eslint-config
v3.2.0
Published
An ESLint shareable config for new projects
Downloads
15
Readme
@smcv/eslint-config
Shareable code style for projects using ESLint.
Install
Pure JavaScript:
npm install --save-dev @smcv/eslint-config eslint-config-standard eslint-plugin-promise eslint-plugin-jest eslint-plugin-node eslint-plugin-security eslint-plugin-import eslint-plugin-prefer-let eslint-plugin-unicorn eslint
TypeScript or ESM-only project:
npm install --save-dev @smcv/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-config-standard eslint-plugin-promise eslint-plugin-jest eslint-plugin-n eslint-plugin-node eslint-plugin-security eslint-plugin-import eslint-plugin-prefer-let eslint-plugin-unicorn eslint
Usage
For JavaScript add config to package.json
or other ESLint configs.
"eslintConfig": {
"extends": "@smcv/eslint-config"
}
For TypeScript:
"eslintConfig": {
"extends": "@smcv/eslint-config/typescript"
}
For ESM-only projects:
"eslintConfig": {
"extends": "@smcv/eslint-config/esm"
}