eslint-plugin-node
eslint-plugin-node copied to clipboard
Additional ESLint's rules for Node.js
Request to support module aliases as provided by the config in [eslint-import-resolver-alias](https://www.npmjs.com/package/eslint-import-resolver-alias). It seems like the rule [node/no-missing-import](https://github.com/mysticatea/eslint-plugin-node/blob/v11.1.0/docs/rules/no-missing-import.md) is not aware of aliases configured by the eslint-import-resolver-alias settings. Example configuration:...
When trying to import a promisified module like `fs/promises` it gives an error but it is a valid node module. Here is the docs: https://nodejs.org/api/fs.html#fs_promise_example
I want to use this package in combination with https://github.com/Rush/link-module-alias to be able to use aliases in requires/imports instead of a long `../../../../../path/to/file`. But the ESLinter (rightly) gives me the...
It was pointed out in #210 that experimental features are treated the same as unsupported ones. This is less than ideal, as while it's not possible to use unsupported features,...
Hello, I'm using rollup and has mixed sources. CommonJS + module. I have following problems: * `plugin:node/recommended` **MUST** respect nearest `package.json` `"type": "..."` * `plugin:node/recommended` **SHOULD** respect environments instead of...
Could this plugin get the Node version from the [`.nvmrc` file](https://github.com/nvm-sh/nvm#nvmrc)? This way it would be more handy to update the Node version: we could just run `node -v >...
I received an error message for a `require` in a file: ``` "my-package" is extraneous. ``` This was unclear. I had a `require('my-package')` in my file, but the solution was...
I like the `prefer-global` rule, but sometimes a dynamic require is needed inside a function. I suggest to add a boolean option `allowDynamic`. If this is set to true, this...
In our `package.json` we have the following: ```js "engines": { "node": "10.15.2" } ``` But `node/no-deprecated-api` still errors on deprecations that were added in Node.js 11.