eslint-plugin-jsbox

An eslint plugin that provides environments and configs for jsbox

Usage no npm install needed!

<script type="module">
  import eslintPluginJsbox from 'https://cdn.skypack.dev/eslint-plugin-jsbox';
</script>

README

eslint-plugin-jsbox

An eslint plugin that provides environments and configs for jsbox

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-jsbox:

$ npm install eslint-plugin-jsbox --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-jsbox globally.

Usage

There are two ways to use this eslint plugin

  1. recommended use the configs provided by this plugin
  2. simply use environments provided by this plugin

1. use the configs

Your .eslintrc configuration can extend configs provided by this plugin.

{
  "extends": ["plugin:jsbox/default"]
}

Then enjoy coding for jsbox !

2. simply use environments

First, add jsbox to the plugins section of your .eslintrc configuration file.

{
  "plugins": ["jsbox"]
}

Then, add jsbox/default to the env section of your .eslintrc configuration file.

{
  "env": {
    "jsbox/default": true
  }
}

Then enjoy coding for jsbox !