Disallow assigning to required bindings
Original author @weiliddat @parcellab/eslint-config#51
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install @parcellab/eslint-plugin-no-require-assign
:
npm install @parcellab/eslint-plugin-no-require-assign --save-dev
Add @parcellab/eslint-plugin-no-require-assign
to the plugins section of your .eslintrc
configuration file:
{
"plugins": ["@parcellab/eslint-plugin-no-require-assign"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@parcellab/eslint-plugin-no-require-assign/rule-name": 2
}
}
- Fill in provided rules here