-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
44 lines (44 loc) · 973 Bytes
/
.eslintrc.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
37
38
39
40
41
42
43
44
module.exports = {
extends: [
'plugin:@wordpress/eslint-plugin/recommended',
// 'plugin:@typescript-eslint/eslint-recommended',
],
//plugins: [ '@typescript-eslint' ],
//parser: '@typescript-eslint/parser',
// parser: '@babel/eslint-parser',
parserOptions: {
sourceType: 'module',
requireConfigFile: false,
},
rules: {
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'@wordpress/no-unsafe-wp-apis': 'off',
'jsdoc/require-param-type': 0,
},
overrides: [
{
files: [
'**/tests/**/*.ts',
'**/tests/**/*.js',
'**/__tests__/**/*.ts',
'**/__tests__/**/*.js',
'**/*.spec.ts',
'**/*.spec.js',
],
extends: ['plugin:@wordpress/eslint-plugin/test-unit'],
settings: {
jest: {
version: 26,
},
},
},
{
files: ['tests/e2e/**/*.js', 'tests/e2e/**/*.ts'],
extends: ['plugin:@wordpress/eslint-plugin/test-e2e'],
rules: {
'jest/expect-expect': 'off',
},
},
],
};