Skip to content

Commit

Permalink
Disable n/file-extension-in-import
Browse files Browse the repository at this point in the history
It's already covered by `import/extensions`.
  • Loading branch information
EvgenyOrekhov committed Jun 25, 2024
1 parent ac2795a commit 7c17b88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The most strict (yet practical) ESLint config.
Aims to include as many plugins and rules as possible to make your code
extremely consistent and robust.

**53 plugins. 1342 rules.**
**53 plugins. 1341 rules.**

## Usage

Expand Down Expand Up @@ -259,9 +259,9 @@ Config for Node.js.
| Plugin | Enabled rules |
| ---------------------------------------------------------------------- | ------------: |
| [eslint-plugin-sonar](https://github.com/un-ts/eslint-plugin-sonar) | 53 |
| [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) | 35 |
| [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) | 34 |
| [eslint-plugin-sdl](https://github.com/microsoft/eslint-plugin-sdl) | 1 |
| **Total:** | **89** |
| **Total:** | **88** |

### `hardcore/react`

Expand Down
1 change: 1 addition & 0 deletions disabled-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@
"n/no-restricted-require": "off",
"n/no-restricted-import": "off",
"n/prefer-node-protocol": "off",
"n/file-extension-in-import": "off",

"regexp/sort-character-class-elements": "off",

Expand Down
8 changes: 0 additions & 8 deletions node.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"rules": {
"n/no-callback-literal": "error",
"n/exports-style": "error",
"n/file-extension-in-import": "error",
"n/prefer-global/buffer": "error",
"n/prefer-global/console": "error",
"n/prefer-global/process": "error",
Expand Down Expand Up @@ -92,13 +91,6 @@
"files": ["*.cjs", ".*.cjs", "*.mjs", ".*.mjs"],

"parserOptions": { "ecmaVersion": "latest" }
},
{
"files": ["*.ts", "*.cts", "*.mts", ".*.ts", ".*.cts", ".*.mts"],

"rules": {
"n/file-extension-in-import": ["error", "never"]
}
}
]
}

0 comments on commit 7c17b88

Please sign in to comment.