eslint-config-sora
v3.1.0
Published
ESLint shareable config
Downloads
83
Maintainers
Readme
eslint-config-sora
Installation
yarn add -D eslint-config-sora
Usage
This config assumes a Node, ES6 environment by default. The Vue config uses a browser environment. In your .eslintrc.js
file:
module.exports = {
extends: 'sora',
};
For Vue:
module.exports = {
extends: 'sora/vue', // or 'sora/vue-3' for Vue 3
};
Using the Vue config will require you to additionally install eslint-plugin-vue
and babel-eslint
.
yarn add -D babel-eslint eslint-plugin-vue
For Nuxt:
module.exports = {
extends: 'sora/nuxt',
};
Using the Nuxt config will require you to additionally install eslint-plugin-nuxt
and babel-eslint
.
yarn add -D babel-eslint eslint-plugin-nuxt