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-07 22:38:12 +00:00
|
|
|
'plugins': [
|
|
|
|
'@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
|
|
|
{
|
|
|
|
'files': [
|
|
|
|
'**/*.js',
|
|
|
|
'**/*.ts'
|
|
|
|
]
|
|
|
|
},
|
2020-06-30 19:50:15 +00:00
|
|
|
{
|
2020-06-30 23:01:12 +00:00
|
|
|
'files': [
|
|
|
|
'**/*.spec.ts',
|
|
|
|
'**/*.test.ts'
|
|
|
|
],
|
2020-06-30 19:50:15 +00:00
|
|
|
'rules': {
|
|
|
|
'no-console': 'off',
|
|
|
|
}
|
|
|
|
}
|
2020-06-22 19:10:45 +00:00
|
|
|
]
|
2020-06-06 23:44:44 +00:00
|
|
|
}
|