Skip to content

Commit

Permalink
feat: move to eslint flat configs (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed May 3, 2024
1 parent 951ea35 commit 5e8c421
Show file tree
Hide file tree
Showing 4 changed files with 485 additions and 704 deletions.
24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import eslint from '@eslint/js';
import {configs as tseslintConfigs} from 'typescript-eslint';

const {configs: eslintConfigs} = eslint;

export default [
{
files: [
'src/**/*.ts'
]
},
eslintConfigs.recommended,
...tseslintConfigs.strict,
{
rules: {
"@typescript-eslint/explicit-function-return-type": ["error", {
"allowExpressions": true
}],
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/parameter-properties": "error",
"@typescript-eslint/no-invalid-void-type": "off"
}
}
];

0 comments on commit 5e8c421

Please sign in to comment.