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:
moduleexports = extends: 'sora';
For Vue:
moduleexports = 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:
moduleexports = 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