3.1.0 • Published 5 years ago
eslint-config-sora v3.1.0
eslint-config-sora
Installation
yarn add -D eslint-config-soraUsage
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-vueFor 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