Skip to content

Commit

Permalink
Tweak eslintrc for better typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Oct 4, 2021
1 parent 0343e69 commit 2ac686f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ module.exports = {
},
ignorePatterns: [ 'build/', 'build-*/', 'node_modules/', '*.d.ts' ],
rules: {
'jsdoc/check-line-alignment': 'off',
'jsdoc/require-property-description': 'off',
'@wordpress/dependency-group': 'error',
'@wordpress/react-no-unsafe-timeout': 'error',
'no-restricted-syntax': [
Expand Down Expand Up @@ -140,4 +142,9 @@ module.exports = {
],
},
],
settings: {
jsdoc: {
mode: 'typescript',
},
},
};

0 comments on commit 2ac686f

Please sign in to comment.