@tabianco/eslint-config
v1.1.0
Published
ESLint config for Nuxt.js
Downloads
10
Readme
Nuxt ESLint Config
ESlint config used for Nuxt.js.
Usage
Do you want to add the config to your own projects? There you go:
- Add this package to your devDependencies
$ npm i -D @tabianco/eslint-config
# or
$ yarn add -D @tabianco/eslint-config
- Install
eslint
if not already present locally or globally
$ npm i -D eslint
# or
$ yarn add -D eslint
Create a
.eslintrc
fileExtend our config (you can use just the scope name as ESLint will assume the
eslint-config
prefix):
{
"extends": [
"@tabianco"
]
}
Full example
A full example .eslintrc
for a project with babel support:
Dont forget to
npm i -D babel-eslint
oryarn add -D babel-eslint
{
"root": true,
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module"
},
"extends": [
"@tabianco"
]
}
License
MIT - Tabian Co.