diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cd04f7f..0959b4f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,4 +11,6 @@ jobs: with: node-version: 18 - run: npm install globals + - run: npm install @eslint/eslintrc + - run: npm install @eslint/js - run: npx eslint . diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..1a78801 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: + - repo: https://github.com/pre-commit/mirrors-eslint + rev: v9.6.0 + hooks: + - id: eslint \ No newline at end of file