@nitra/eslint-config
Version:
A Eslint shareable config for projects using 'Vue' and 'Node'
52 lines (40 loc) • 638 B
Markdown
```sh
yarn add @nitra/eslint-config -D
```
_This is only a shareable configuration. It does not install Prettier, Standard,
ESLint, or any other part of the tool chain._
Reference it in `package.json` using the `eslintConfig` property.
Root:
```json
"eslintConfig": {
"extends": [
"@nitra"
],
"root": true
}
```
Node:
```json
"engines": {
"node": ">=18.0.0"
},
"eslintConfig": {
"extends": [
"@nitra/eslint-config/node"
]
}
```
Vue:
```json
"eslintConfig": {
"extends": [
"@nitra/eslint-config/vue"
],
"globals": {
"localStorage": "readonly"
}
}
```