@tuia/eslint-plugin-js

check whether the object is empty

Usage no npm install needed!

<script type="module">
  import tuiaEslintPluginJs from 'https://cdn.skypack.dev/@tuia/eslint-plugin-js';
</script>

README

@tuia/eslint-plugin-js

check whether the object is empty

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @tuia/eslint-plugin-js:

npm install @tuia/eslint-plugin-js --save-dev

Usage

{
    "plugins": [
        "@tuia/js"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "@tuia/js/no-empty-object": [2],
    }
}

Supported Rules

  • no-empty-object