@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