-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy patheslint.config.js
36 lines (35 loc) · 973 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import eslint from '@eslint/js';
import tseslint from '@typescript-eslint/eslint-plugin';
import tseslintParser from '@typescript-eslint/parser';
import globals from 'globals';
export default [
eslint.configs.recommended,
{
files: ['src/**/*.ts', 'src/*.ts'],
ignores: ['src/commands/browser/stagehand/stagehandScript.ts'],
languageOptions: {
parser: tseslintParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: 'tsconfig.json'
},
globals: {
...globals.node
}
},
plugins: {
'@typescript-eslint': tseslint
},
rules: {
'@typescript-eslint/no-unused-vars': ['error', {
'varsIgnorePattern': '^_|^[A-Z][a-zA-Z]+$',
'argsIgnorePattern': '^_|^[a-z][a-zA-Z]+$',
'args': 'none',
'ignoreRestSiblings': true
}],
'no-unused-vars': 'off',
'@typescript-eslint/no-floating-promises': 'error'
}
}
];