0.2.1 • Published 3 years ago
@rob8080/eslint-config-ts v0.2.1
@rob8080/eslint-config-ts
A config mostly used by myself, including recommend extends from JS, TS & Vue, also with some additional rules.
Install
# Yarn
yarn add --dev eslint @rob8080/eslint-config-ts
# NPM
npm install -D eslint @rob8080/eslint-config-ts
- Also add peer dependencies listed below
Peer Dependencies
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 | ✔️ | ✔️ |
Usage
.eslintrc.js
module.exports = {
// ...
extends: [
'@rob8080/eslint-config-ts', // or other package
],
// ...
}
See also:
0.2.1
3 years ago