Skip to content

Commit 3a4c482

Browse files
authored
Add util for creating extendable ESLint configurations (#374)
* Add util for creating extendable ESLint configurations * Revert changes to file extensions * Add function to load config with child configs * Revert "Add function to load config with child configs" This reverts commit cb046f6. * Fix lint issue
1 parent d1833f4 commit 3a4c482

File tree

12 files changed

+573
-389
lines changed

12 files changed

+573
-389
lines changed

eslint.config.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,15 @@ const config = tseslint.config(
4141
},
4242

4343
rules: {
44+
'import-x/extensions': ['error', 'ignorePackages'],
4445
'import-x/no-dynamic-require': 'off',
4546
'import-x/no-nodejs-modules': 'off',
47+
'import-x/no-useless-path-segments': [
48+
'error',
49+
{
50+
noUselessIndex: false,
51+
},
52+
],
4653
'jsdoc/check-tag-names': 'off',
4754
'jsdoc/no-types': 'off',
4855
'n/global-require': 'off',

0 commit comments

Comments
 (0)