2020-06-06 23:44:44 +00:00
|
|
|
module.exports = {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
env: {
|
2021-11-05 12:43:46 +00:00
|
|
|
'jest/globals': true,
|
2020-06-06 23:44:44 +00:00
|
|
|
},
|
2021-11-05 12:43:46 +00:00
|
|
|
ignorePatterns: [ 'dist/', 'node_modules/' ],
|
2020-06-06 23:44:44 +00:00
|
|
|
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
|
|
|
},
|
2021-11-05 12:43:46 +00:00
|
|
|
plugins: [ '@typescript-eslint/eslint-plugin' ],
|
|
|
|
extends: [ 'plugin:@wordpress/eslint-plugin/recommended-with-formatting' ],
|
2020-06-22 19:10:45 +00:00
|
|
|
overrides: [
|
2020-09-07 22:38:12 +00:00
|
|
|
{
|
2021-11-05 12:43:46 +00:00
|
|
|
files: [ '**/*.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
|
|
|
{
|
2021-11-05 12:43:46 +00:00
|
|
|
files: [ '**/*.spec.ts', '**/*.test.ts' ],
|
2020-09-29 19:00:09 +00:00
|
|
|
rules: {
|
2020-06-30 19:50:15 +00:00
|
|
|
'no-console': 'off',
|
2021-11-05 12:43:46 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|