-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
33 lines (33 loc) · 729 Bytes
/
Copy path.eslintrc.js
File metadata and controls
33 lines (33 loc) · 729 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
module.exports = {
env: {
node: true,
es2021: true,
jest: true,
},
extends: ['standard', 'plugin:jest/recommended', 'prettier'],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['jest', 'prettier'],
rules: {
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'prefer-const': 'error',
'no-var': 'error',
'prettier/prettier': 'error',
'comma-dangle': 'off',
semi: 'off',
},
overrides: [
{
files: ['tests/**/*.js'],
env: {
jest: true,
},
},
],
};