Skip to content

Commit

Permalink
refactor: update ESLint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
sixmen committed Oct 26, 2024
1 parent 5ed519f commit 7dafe53
Show file tree
Hide file tree
Showing 47 changed files with 4,386 additions and 5,631 deletions.
3 changes: 0 additions & 3 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install post-merge-install
3 changes: 0 additions & 3 deletions .husky/post-rebase
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install post-merge-install
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
30 changes: 30 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import baseConfig from '@croquiscom/eslint-config/requiring-type-checking.mjs';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
...baseConfig,
{
languageOptions: {
globals: {
...globals.node,
},

parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},

settings: {
'import/resolver': {
typescript: true,
},
},

rules: {},
},
{
ignores: ['eslint.config.mjs'],
},
);
Loading

0 comments on commit 7dafe53

Please sign in to comment.