Skip to content

Commit

Permalink
For the /node config, disable all eslint-plugin-n rules related t…
Browse files Browse the repository at this point in the history
…o `import` and `require` that have too many false positives
  • Loading branch information
mangs committed Dec 7, 2023
1 parent 77776b1 commit f9481c6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 1.0.1

- For the `/node` config, disable all `eslint-plugin-n` rules related to `import` and `require` that have too many false positives:
- `n/no-extraneous-import`
- `n/no-extraneous-require`
- `n/no-missing-import`
- `n/no-missing-require`
- `n/no-unpublished-import`
- `n/no-unpublished-require`

## 1.0.0

- First public release
6 changes: 6 additions & 0 deletions lib/eslintNodeConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
"node": true
},
"rules": {
"n/no-extraneous-import": "off",
"n/no-extraneous-require": "off",
"n/no-missing-import": "off",
"n/no-missing-require": "off",
"n/no-path-concat": "error",
"n/no-unpublished-import": "off",
"n/no-unpublished-require": "off",
"n/prefer-global/console": "error",
"n/prefer-global/text-decoder": "error",
"n/prefer-global/text-encoder": "error",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@babbel/eslint-config",
"version": "1.0.0",
"version": "1.0.1",
"author": "Eric L. Goldstein <egoldstein@babbel.com>",
"description": "Hierarchical ESLint configuration collection that intends to be simple to use, layered, and shared with others",
"keywords": [
Expand Down

0 comments on commit f9481c6

Please sign in to comment.