Skip to content

Commit

Permalink
style: fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored and 3cp committed Oct 18, 2024
1 parent 5042711 commit 48554cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export default [
...tseslint.configs.recommended,
{
plugins: { 'import-x': eslintPluginImportX },
settings: eslintPluginImportX.configs.typescript.settings,
settings: eslintPluginImportX.flatConfigs.typescript.settings,
rules: {
...eslintPluginImportX.configs.errors.rules,
...eslintPluginImportX.configs.warnings.rules,
...eslintPluginImportX.configs.typescript.rules,
...eslintPluginImportX.flatConfigs.errors.rules,
...eslintPluginImportX.flatConfigs.warnings.rules,
...eslintPluginImportX.flatConfigs.typescript.rules,
'@typescript-eslint/no-use-before-define': [2, { functions: false }], // https://github.com/eslint/eslint/issues/11903
'@typescript-eslint/indent': 0,
'prefer-const': ['error', { destructuring: 'all' }],
Expand Down Expand Up @@ -40,7 +40,8 @@ export default [
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-require-imports': 0,
'no-fallthrough': 0
'no-fallthrough': 0,
'import-x/no-rename-default': 0
}
},
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"eslint": "^9.12.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import-x": "^4.3.1",
"eslint-plugin-n": "^17.11.1",
"husky": "^9.1.6",
Expand Down

0 comments on commit 48554cc

Please sign in to comment.