A config mostly used by myself, including recommend extends from JS, TS & Vue, also with some additional rules.
# Yarn
yarn add --dev eslint @rob8080/eslint-config
# NPM
npm install -D eslint @rob8080/eslint-config- Also add peer dependencies listed below
| package | eslint-config | -base | -ts | -vue |
|---|---|---|---|---|
| eslint@>=7 | ✔️ | ✔️ | ✔️ | ✔️ |
| @typescript-eslint/eslint-plugin@>=4.14.0 | ✔️ | ✔️ | ||
| @typescript-eslint/parser@>=4.14.0 | ✔️ | ✔️ | ||
| eslint-plugin-vue@>=7.4.0 | ✔️ | ✔️ | ||
| vue-eslint-parser@>=7.3.0 | ✔️ | ✔️ |
.eslintrc.js
module.exports = {
// ...
extends: [
'@rob8080/eslint-config', // or other package
],
// ...
}