Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit 76598b8

Browse files
committed
feat: require extensions for imports
See https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md BREAKING CHANGE: requires file imports stamenents to include the extension
1 parent ddbbd23 commit 76598b8

File tree

3 files changed

+1458
-23
lines changed

3 files changed

+1458
-23
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
parserOptions: {
44
project: './tsconfig.json',
55
},
6-
plugins: ['@typescript-eslint', 'unicorn', 'prefer-arrow'],
6+
plugins: ['@typescript-eslint', 'unicorn', 'prefer-arrow', 'import'],
77
extends: [
88
'eslint:recommended',
99
'plugin:@typescript-eslint/recommended',
@@ -59,6 +59,7 @@ module.exports = {
5959
'@typescript-eslint/switch-exhaustiveness-check': ['error'],
6060
'prefer-arrow/prefer-arrow-functions': ['error'],
6161
'object-shorthand': ['error'],
62+
'import/extensions': ['error', 'always', { ignorePackages: true }],
6263
},
6364
env: {
6465
browser: true,

0 commit comments

Comments
 (0)