1.0.5 • Published 3 years ago

@visualsignal/eslint-config v1.0.5

Weekly downloads
73
License
ISC
Repository
-
Last release
3 years ago

VisualSignal ESLint Config

Usage

Install this module into your project using:

npm install --save @visualsignal/eslint-config

Create an .eslintrc.js in the root of your project with the following contents:

module.exports = {
  extends: ['@visualsignal/eslint-config'],
}

(This can also be a simple .eslintrc if you wish)

This will install the base VisualSignal ESLint config into your project.

We also have a number of alternatives that extend this base config for more specific use cases, these can be used by replacing the string within the extends array. For instance: a frontend Vue application using TypeScript, such as VisualSignal.io, would use @visualsignal/eslint-config/vue-ts.

Here are all our available configs:

NameESLint config pathDescription
Base (or Index)@visualsignal/eslint-configA TypeScript config based off of AirBnB, with some preferential modifications.
Frontend@visualsignal/eslint-config/frontendCurrently a very simple config with some frontend globals such as document, WebSocket, MediaStream.
Frontend with TypeScript@visualsignal/eslint-config/frontend-tsExtends base and frontend.
Vue@visualsignal/eslint-config/vueExtends frontend.
Vue with TypeScript@visualsignal/eslint-config/vue-tsExtends base and vue with some modifications for frontend TS usage.