eslint-plugin-node
eslint-plugin-node copied to clipboard
Additional ESLint's rules for Node.js
Add support for yarn workspaces in `no-extraneous-import` See https://classic.yarnpkg.com/en/docs/workspaces
We use `node/no-missing-import` in a typescript project, the configuration we are using now is: ``` node/no-missing-import: # recommended error - error - tryExtensions: # default does not include TypeScript or...
I'm a newcomer in the Node Village and want to follow all the rules in this plugin. so do we have any config such as : ```js { "extends": ["plugin:node/all"]...
We have a monorepo with yarn workspaces and one of the packages contains `"type": "module"`. This isn't properly detected for files linted in that package, because the `getPackageJson` function always...
The following is supported from Node v12 onwards: ```js fs.rmDir("myRandomDir", { recursive: true }); ``` It'd be awesome if `no-unsupported-features/node-builtin` caught this. For reference: https://github.com/blitz-js/blitz/pull/454
The following is supported from Node v12 onwards: ```js const REPL = require("repl"); const repl = REPL.start(); repl.setupHistory(...); ``` It'd be awesome if no-unsupported-features/node-builtin caught this. For reference: blitz-js/blitz#454
[`assert.equal`](https://nodejs.org/api/assert.html#assert_assert_equal_actual_expected_message), [`assert.notEqual`](https://nodejs.org/api/assert.html#assert_assert_notequal_actual_expected_message), [`assert.deepEqual`](https://nodejs.org/api/assert.html#assert_assert_deepequal_actual_expected_message), and [`assert.notDeepEqual`](https://nodejs.org/api/assert.html#assert_assert_notdeepequal_actual_expected_message) are deprecated in [legacy assertion mode](https://nodejs.org/api/assert.html#assert_legacy_assertion_mode) (but not in [strict assertion mode](https://nodejs.org/api/assert.html#assert_strict_assertion_mode)). [node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md) currently does not report these APIs as deprecated.
Hello! There's a very sneaky bug I've caught in our codebase a few times that I'm hoping an existing or new rule in `eslint-plugin-node` could detect. Let's say your package...
Currently `callback-return` rule requires returning of callback in any case even if it's the last expression in a function: ```js function (cb) { console.log(''); if (cb) cb(); } ``` I...
When running with `eslint-plugin-node` and specifying the following in package.json: ```json "engines": { "node": ">=8.9.0" } ``` I expect the following to be flagged by `no-unsupported-features/es-builtins` since this feature was...