eslint-plugin-webgl-logic

Custom eslint rules for the webgl logic module

Usage no npm install needed!

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

README

eslint-plugin-webgl-logic

Installation

Install ESLint either locally or globally.

$ npm install eslint

If you installed ESLint globally, you have to install the eslint-plugin-webgl-logic plugin globally too. Otherwise, install it locally.

$ npm install eslint-plugin-webgl-logic

Configuration

Add plugins section and specify eslint-plugin-webgl-logic as a plugin.

{
  "plugins": [
    "webgl-logic"
  ]
}

Add rules

{
  "rules": {
    "webgl-logic/noAsyncAwait": 2,
    "webgl-logic/noMathRandom": 2
  }
}

License

eslint-plugin-webgl-logic is licensed under the MIT License.