Skip to content

Commit

Permalink
[chore] eslint 9 + lint-staged / husky rework
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Besson committed Nov 20, 2024
1 parent dda3d28 commit 0809cd4
Show file tree
Hide file tree
Showing 6 changed files with 688 additions and 891 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/precommit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx lint-staged
lint-staged
4 changes: 0 additions & 4 deletions .lintstagedrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// @ts-check

import eslint from '@eslint/js';
import pluginSecurity from 'eslint-plugin-security';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{ ignores: ['reports/**', 'node_modules/**', 'bin/**', '*.sh'] },
eslint.configs.recommended,
tseslint.configs.recommended,
pluginSecurity.configs.recommended,
{
rules: {
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/camelcase': 'off',
},
},
);
Loading

0 comments on commit 0809cd4

Please sign in to comment.