Skip to content

Commit

Permalink
feat(eslint-plugin-experience): add no-empty-function
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Nov 17, 2023
1 parent c2b81d7 commit 9fb2e56
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions projects/eslint-plugin-experience/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,19 @@ module.exports = {
'@typescript-eslint/no-base-to-string': 'error',
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
'@typescript-eslint/no-duplicate-enum-values': 'error',
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-empty-function': [
'error',
{
allow: [
'methods',
'arrowFunctions',
'private-constructors',
'protected-constructors',
'overrideMethods',
'decoratedFunctions',
],
},
],
'@typescript-eslint/no-extra-non-null-assertion': 'error',
'@typescript-eslint/no-extraneous-class': [
'error',
Expand Down Expand Up @@ -682,7 +694,6 @@ module.exports = {
plugins: ['@typescript-eslint'],
rules: {
'@taiga-ui/experience/no-deep-imports': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-extraneous-class': 'off',
'@typescript-eslint/no-shadow': 'off',
'import/extensions': 'off',
Expand Down Expand Up @@ -814,15 +825,13 @@ module.exports = {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': ['error', {allowDeclarations: true}],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-shadow': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-useless-constructor': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
Expand Down

0 comments on commit 9fb2e56

Please sign in to comment.