Skip to content

Commit 2d637b1

Browse files
author
oldskytree
committed
build: configure eslint for typescript
1 parent 79db1c7 commit 2d637b1

File tree

4 files changed

+582
-591
lines changed

4 files changed

+582
-591
lines changed

.eslintrc.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
module.exports = {
2-
extends: 'gemini-testing',
3-
root: true
2+
extends: ['gemini-testing', 'plugin:@typescript-eslint/recommended'],
3+
parser: '@typescript-eslint/parser',
4+
plugins: ['@typescript-eslint'],
5+
root: true,
6+
rules: {
7+
'@typescript-eslint/no-use-before-define': 'off',
8+
'@typescript-eslint/no-explicit-any': 'off',
9+
'@typescript-eslint/explicit-function-return-type': 'off',
10+
'@typescript-eslint/array-type': ['error', 'generic'],
11+
'@typescript-eslint/no-object-literal-type-assertion': 'off',
12+
'@typescript-eslint/explicit-member-accessibility': ['error', {accessibility: 'no-public'}],
13+
}
414
};

0 commit comments

Comments
 (0)