Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrksbnc committed Nov 16, 2023
1 parent f8a202e commit 0ed5fe9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
11 changes: 9 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
parserOptions: {
ecmaVersion: 'latest',
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
project: './tsconfig.json',
parser: '@typescript-eslint/parser',
},
rules: {
Expand All @@ -36,5 +36,12 @@ module.exports = {
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
},
ignorePatterns: ['*.snap', '*.cjs', 'scripts/*', 'dist/*', 'node_modules/*'],
ignorePatterns: [
'*.snap',
'*.cjs',
'scripts/*',
'dist/*',
'node_modules/*',
'docs/*',
],
}
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,3 @@ repos:
entry: npm run lint
stages: [commit]
pass_filenames: false

- id: format
name: Try to format
language: system
entry: npm run format
stages: [commit]
pass_filenames: false
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"vite.config.*",
"vitest.config.*"
],
"exclude": ["node_modules"]
"exclude": ["node_modules", "dist", "docs"]
}

0 comments on commit 0ed5fe9

Please sign in to comment.