Usage
To use this plugin with ESLint:
- Ensure the plugin is loaded, e.g. by adding the following to your
.eslintrc
file:
"plugins": [
"no-extension-in-require"
]
- Enable the rule in your ESLint configuration, e.g.:
"rules": {
"no-extension-in-require/main": 2
}
See the ESLint documentation for more information.