32 lines
464 B
JavaScript
32 lines
464 B
JavaScript
module.exports = {
|
|
parser: '@typescript-eslint/parser',
|
|
env: {
|
|
'jest/globals': true
|
|
},
|
|
ignorePatterns: [
|
|
'dist/',
|
|
'node_modules/'
|
|
],
|
|
rules: {
|
|
'no-unused-vars': 'off',
|
|
'no-dupe-class-members': 'off',
|
|
},
|
|
extends: [
|
|
'plugin:@wordpress/eslint-plugin/recommended-with-formatting'
|
|
],
|
|
overrides: [
|
|
{
|
|
'files': [ '**/*.ts' ]
|
|
},
|
|
{
|
|
'files': [
|
|
'**/*.spec.ts',
|
|
'**/*.test.ts'
|
|
],
|
|
'rules': {
|
|
'no-console': 'off',
|
|
}
|
|
}
|
|
]
|
|
}
|