2020-06-06 23:44:44 +00:00
|
|
|
module.exports = {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
env: {
|
|
|
|
'jest/globals': true
|
|
|
|
},
|
|
|
|
ignorePatterns: [
|
|
|
|
'dist/',
|
|
|
|
'node_modules/'
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
'no-unused-vars': 'off',
|
2020-06-30 19:50:15 +00:00
|
|
|
'no-dupe-class-members': 'off',
|
2020-09-07 22:38:12 +00:00
|
|
|
|
|
|
|
'no-useless-constructor': 'off',
|
|
|
|
'@typescript-eslint/no-useless-constructor': 2,
|
2020-06-06 23:44:44 +00:00
|
|
|
},
|
2020-09-29 19:00:09 +00:00
|
|
|
plugins: [
|
2020-09-07 22:38:12 +00:00
|
|
|
'@typescript-eslint'
|
|
|
|
],
|
2020-06-06 23:44:44 +00:00
|
|
|
extends: [
|
2020-06-24 21:47:46 +00:00
|
|
|
'plugin:@wordpress/eslint-plugin/recommended-with-formatting'
|
2020-06-06 23:44:44 +00:00
|
|
|
],
|
2020-06-22 19:10:45 +00:00
|
|
|
overrides: [
|
2020-09-07 22:38:12 +00:00
|
|
|
{
|
2020-09-29 19:00:09 +00:00
|
|
|
files: [
|
2020-09-07 22:38:12 +00:00
|
|
|
'**/*.js',
|
|
|
|
'**/*.ts'
|
2020-09-29 19:00:09 +00:00
|
|
|
],
|
|
|
|
settings: {
|
|
|
|
jsdoc: {
|
|
|
|
mode: 'typescript',
|
|
|
|
},
|
|
|
|
},
|
2020-09-07 22:38:12 +00:00
|
|
|
},
|
2020-06-30 19:50:15 +00:00
|
|
|
{
|
2020-09-29 19:00:09 +00:00
|
|
|
files: [
|
2020-06-30 23:01:12 +00:00
|
|
|
'**/*.spec.ts',
|
|
|
|
'**/*.test.ts'
|
|
|
|
],
|
2020-09-29 19:00:09 +00:00
|
|
|
rules: {
|
2020-06-30 19:50:15 +00:00
|
|
|
'no-console': 'off',
|
|
|
|
}
|
|
|
|
}
|
2020-06-22 19:10:45 +00:00
|
|
|
]
|
2020-06-06 23:44:44 +00:00
|
|
|
}
|