@futagoza/eslint-config-globals

ESLint configurations for easier usage of global variables.

Usage no npm install needed!

<script type="module">
  import futagozaEslintConfigGlobals from 'https://cdn.skypack.dev/@futagoza/eslint-config-globals';
</script>

README

dependencies History License

This package contains configuration files for ESLint v6+

This is a configuration file for ESLint that is used to enable JavaScript global variables.

installation

$ npm i --save-dev @futagoza/eslint-config-globals

usage

Put the following into your configuration (.eslintrc.* file or the "eslintConfig" field in package.json):

{
    "extends": "@futagoza/globals"
}

configurations

A list of usable configurations as well the configurations they use:

  • @futagoza/globals (default, enables common built-in ECMAScript variables)
  • @futagoza/globals/browser
  • @futagoza/globals/es5 (extends @futagoza/globals)
  • @futagoza/globals/es2015 (extends es5)
  • @futagoza/globals/es2017 (extends es2015)
  • @futagoza/globals/es2020 (extends es2017)
  • @futagoza/globals/es2021 (extends es2020)
  • @futagoza/globals/gui (extends browser and node)
  • @futagoza/globals/loaders
  • @futagoza/globals/node
  • @futagoza/globals/test
  • @futagoza/globals/worker

license

Copyright © 2019+ Futago-za Ryuu
Released under the MIT License, http://opensource.org/licenses/MIT