eslint-plugin-node
eslint-plugin-node copied to clipboard
Additional ESLint's rules for Node.js
My package works when running locally and it include files which are being reported as [`node/no-unpublished-import`](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unpublished-import.md). Looking at the [rule details](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unpublished-import.md#-rule-details) https://github.com/mysticatea/eslint-plugin-node/blob/f45c6149be7235c0f7422d1179c25726afeecd83/docs/rules/no-unpublished-import.md?plain=1#L9-L16 all conditions are met: - [x] `"files"` field...
It seems this library hasn't had any updates in ~14 months (as of end of July 2022). There's a number of significant issues that are open, many with PRs to...
Hi everyone, I'm running into an issue with Eslint when I try to create a copy of "req.query" like so: ```javascript const queryObj = { ...req.query }; ``` My node...
```json { "name": "my-package", "type": "module" } ``` ```js import foo from "my-package"; // This should not cause a rule violation ```
it seems that the option `allowModules` accepts the typical module names only. it should accept wildcards and regex - [ ] allow wildcards and regex - [ ] add .ts...
# The current situation Given this configuration: ```json { "node/file-extension-in-import": ["error", "always"] } ``` And this file: _(a typescript file that imports from another typescript file)_ ```typescript // file1.ts import...
I feel like this rule would help a lot of new node users that love making CLI & bin application with it (like me😊). I have a large CLI app...
We have a shareable config file that we use across multiple projects with good default configuration. However, sometimes there are rules which require adding some custom per-project configuration on top...
[From Node.js’s docs on Assert’s legacy assertion mode](https://nodejs.org/api/assert.html#assert_legacy_assertion_mode) (`require('assert')`): > Whenever possible, use the [strict assertion mode](https://nodejs.org/api/assert.html#assert_strict_assertion_mode) instead. A rule to make sure to always use strict assertion method (`require('assert').strict`)...
This is a reopening of https://github.com/mysticatea/eslint-plugin-node/issues/205. Typescript is usually (IMHO) configured, when used with node, to translate what look like ECMA imports and exports down to CommonJS. I know that's...