Skip to content

Commit

Permalink
fix(deps): bump up all deps, migrate to lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
Avivbens committed Apr 18, 2024
1 parent 966782a commit 22a69f4
Show file tree
Hide file tree
Showing 7 changed files with 3,536 additions and 3,301 deletions.
11 changes: 0 additions & 11 deletions .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run pre-commit
npx lint-staged
7 changes: 7 additions & 0 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = process.env.CI
? {
'**/*.(js|ts|json|yaml)': 'npm run lint',
}
: {
'**/*.(js|ts|json|yaml)': 'npm run lint:fix',
}
15 changes: 13 additions & 2 deletions .eslintrc.js → eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
module.exports = {
parser: '@typescript-eslint/parser',
/**
* @type {import('eslint').Linter.Config}
*/
export default {
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
languageOptions: {
parser: '@typescript-eslint/parser',
},
plugins: [
'@typescript-eslint/eslint-plugin',
'jest',
Expand All @@ -22,6 +27,12 @@ module.exports = {
node: true,
jest: true,
},
ignorePatterns: [
'node_modules',
'dist',
'coverage',
'docs',
],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
Expand Down
Loading

0 comments on commit 22a69f4

Please sign in to comment.