1.0.5 • Published 3 years ago
@raidorev/eslint-config v1.0.5
My ESLint configurations
About
I don't use ESLint for formatting, Prettier does it fine on its own. So I use eslint-config-prettier to disable the rules related to formatting. I almost always use typescript in my projects. Also, I very often use VueJS, Lodash.
Installation
yarn add -D @raidorev/eslint-config
# or
npm install -D @raidorev/eslint-config
Usage
Extend your config file:
// .eslintrc.js
module.exports = {
extends: ['@raidorev'],
}
Available additions
- Typescript
@raidorev/eslint-config/typescript
. Adds typescript support through typescript-eslint - Vue
@raidorev/eslint-config/vue
. Adds vue support through eslint-plugin-vue - Lodash
@raidorev/eslint-config/lodash
. Adds eslint-plugin-lodash
To use additions, you need to extend the base config with necessary addition:
// .eslintrc.js
module.exports = {
extends: [
'@raidorev/eslint-config/typescript',
'@raidorev/eslint-config/vue',
'@raidorev/eslint-config/lodash',
'@raidorev',
],
}
I put the base config last in the list of extensions because
eslint-config-prettier
has to overwrite some rules.