-
Notifications
You must be signed in to change notification settings - Fork 199
/
.eslintrc.js
48 lines (48 loc) · 1006 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
45
46
47
48
module.exports = {
extends: [ 'plugin:@wordpress/eslint-plugin/recommended', 'prettier' ],
env: {
'jest/globals': true,
},
globals: {
wp: true,
},
rules: {
'@wordpress/dependency-group': 'warn',
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: 'sensei-lms',
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/*.test.js',
'scripts/**/*.js',
'tests/**/*.js',
'webpack.config.js',
'postcss.config.js',
'jest.setup.js',
'jest.config.js',
],
peerDependencies: false,
optionalDependencies: false,
bundledDependencies: false,
packageDir: __dirname,
},
],
'jsdoc/check-line-alignment': [
'warn',
'always',
{
tags: [ 'param', 'arg', 'argument', 'property', 'prop' ],
preserveMainDescriptionPostDelimiter: true,
},
],
'jsdoc/require-yields': 'off',
'jsdoc/tag-lines': 'off',
'react-hooks/exhaustive-deps': 'warn',
},
plugins: [ 'jest' ],
};