Skip to content

Commit 5e8c421

Browse files
authored
feat: move to eslint flat configs (#26)
1 parent 951ea35 commit 5e8c421

File tree

4 files changed

+485
-704
lines changed

4 files changed

+485
-704
lines changed

.eslintrc.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

eslint.config.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import eslint from '@eslint/js';
2+
import {configs as tseslintConfigs} from 'typescript-eslint';
3+
4+
const {configs: eslintConfigs} = eslint;
5+
6+
export default [
7+
{
8+
files: [
9+
'src/**/*.ts'
10+
]
11+
},
12+
eslintConfigs.recommended,
13+
...tseslintConfigs.strict,
14+
{
15+
rules: {
16+
"@typescript-eslint/explicit-function-return-type": ["error", {
17+
"allowExpressions": true
18+
}],
19+
"@typescript-eslint/explicit-member-accessibility": "error",
20+
"@typescript-eslint/member-delimiter-style": "error",
21+
"@typescript-eslint/no-empty-interface": "error",
22+
"@typescript-eslint/parameter-properties": "error",
23+
"@typescript-eslint/no-invalid-void-type": "off"
24+
}
25+
}
26+
];

0 commit comments

Comments
 (0)