Skip to content

Commit

Permalink
Add import extension rule
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Feb 16, 2022
1 parent 304fdcb commit 6cbcfde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -111,5 +111,9 @@ module.exports = {
}],
// require object literal shorthand syntax
'object-shorthand': ['error', 'always'],
// Warn when file extensions are not used on import paths
'import/extensions': ['warn', 'always', {
ignorePackages: true,
}],
},
}

0 comments on commit 6cbcfde

Please sign in to comment.