Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-sora

Danktuary188MIT3.1.0

ESLint shareable config

eslintconfig, lint, linter, jshint, jslint, eslint, validate

readme

eslint-config-sora

Shareable ESLint config

NPM version NPM downloads Dependencies

NPM info

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