@janaseta/eslint-config
v1.1.1
Published
Jāņa sēta's eslint config
Downloads
6
Readme
Jāņa sēta's eslint config
Installation
You should have ESLint. Install it if you haven't:
npm install eslint --save-dev
npm install @janaseta/eslint-config --save-dev
Usage
In the .eslintrc
:
{
"extends": "@janaseta"
}
And run it:
npx eslint .
For existing projects you might want a softer ruleset:
{
"extends": "@janaseta/eslint-config/soft"
}
Vue
For Vue projects you must also install the vue plugin:
npm install eslint-plugin-vue --save-dev
{
"extends": "@janaseta/eslint-config/vue"
}