-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy patheslint.config.js
More file actions
38 lines (37 loc) · 1022 Bytes
/
eslint.config.js
File metadata and controls
38 lines (37 loc) · 1022 Bytes
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
37
38
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintConfigPrettier from 'eslint-config-prettier';
export default tseslint.config(
{
ignores: ['dist/', 'node_modules/'],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
{
rules: {
'no-await-in-loop': 'off',
'no-param-reassign': ['error', { props: false }],
'@typescript-eslint/no-use-before-define': ['error', { typedefs: false }],
'no-use-before-define': 'off',
},
},
{
// Test file configuration.
files: ['test/**/*.js'],
languageOptions: {
globals: {
describe: 'readonly',
it: 'readonly',
before: 'readonly',
after: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
},
},
rules: {
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-unused-vars': ['error', { caughtErrors: 'none', varsIgnorePattern: '^_' }],
},
},
);