Skip to content

Commit

Permalink
add: rule - imports should have an extension (#44)
Browse files Browse the repository at this point in the history
If you fogot extension for internal import e.q. '.js' it couse an error - module not found
  • Loading branch information
star-over committed Nov 29, 2021
1 parent 7200d74 commit 6fcbfc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ parserOptions:

rules:
no-console: 0
import/extensions: 0 # FIXME: remove when rule will be adjusted for new nodejs version
import/extensions: # FIXME: remove when rule will be adjusted for new nodejs version
- error
- ignorePackages
- js: always
no-underscore-dangle: [2, { "allow": ["__filename", "__dirname"] }]

0 comments on commit 6fcbfc8

Please sign in to comment.