Skip to content

Commit

Permalink
Stop requiring jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Dec 9, 2024
1 parent eb6e4f1 commit 4f084f3
Showing 1 changed file with 50 additions and 42 deletions.
92 changes: 50 additions & 42 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,54 @@ export default [
},

rules: {
// core
'block-scoped-var': 'error',
'curly': 'error',
'default-case': 'error',
'no-cond-assign': 'error',
'no-console': 'error',
'no-const-assign': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-delete-var': 'error',
'no-dupe-args': 'error',
'no-dupe-class-members': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-empty': 'error',
'no-empty-character-class': 'error',
'no-eq-null': 'error',
'no-ex-assign': 'error',
'no-extra-boolean-cast': 'error',
'no-fallthrough': 'error',
'no-func-assign': 'error',
'no-inner-declarations': ['error', 'functions'],
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-multi-assign': 'error',
'no-negated-in-lhs': 'error',
'no-obj-calls': 'error',
'no-octal': 'error',
'no-redeclare': 'error',
'no-regex-spaces': 'error',
'no-sparse-arrays': 'error',
'no-this-before-super': 'error',
'no-undef': 'error',
'no-unreachable': 'error',
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'none',
},
],
'no-use-before-define': ['error', 'nofunc'],
'no-var': 'error',
'prefer-const': 'error',
'use-isnan': 'error',
'valid-typeof': 'error',

// import plugin
'import/no-unresolved': [
'error',
{
Expand All @@ -64,6 +109,8 @@ export default [
ignorePackages: true,
},
],

// jsdoc plugin
'jsdoc/check-access': 'error',
'jsdoc/check-alignment': 'error',
'jsdoc/check-param-names': 'error',
Expand All @@ -81,6 +128,7 @@ export default [
'jsdoc/no-bad-blocks': 'error',
'jsdoc/no-undefined-types': 'off',
'jsdoc/require-hyphen-before-param-description': ['error', 'never'],
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param': 'error',
'jsdoc/require-param-description': 'error',
'jsdoc/require-param-name': 'error',
Expand All @@ -93,46 +141,8 @@ export default [
'jsdoc/require-returns-check': 'error',
'jsdoc/require-returns-description': 'error',
'jsdoc/require-returns-type': 'error',
'no-cond-assign': 'error',
'no-console': 'error',
'no-const-assign': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-delete-var': 'error',
'no-dupe-args': 'error',
'no-dupe-class-members': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-empty': 'error',
'no-empty-character-class': 'error',
'no-eq-null': 'error',
'no-ex-assign': 'error',
'no-extra-boolean-cast': 'error',
'no-fallthrough': 'error',
'no-func-assign': 'error',
'no-inner-declarations': ['error', 'functions'],
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-multi-assign': 'error',
'no-negated-in-lhs': 'error',
'no-obj-calls': 'error',
'no-octal': 'error',
'no-redeclare': 'error',
'no-regex-spaces': 'error',
'no-sparse-arrays': 'error',
'no-this-before-super': 'error',
'no-undef': 'error',
'no-unreachable': 'error',
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'none',
},
],
'no-use-before-define': ['error', 'nofunc'],
'no-var': 'error',
'prefer-const': 'error',

// prettier plugin
'prettier/prettier': [
'error',
{
Expand All @@ -141,8 +151,6 @@ export default [
quoteProps: 'preserve',
},
],
'use-isnan': 'error',
'valid-typeof': 'error',
},
},
];

0 comments on commit 4f084f3

Please sign in to comment.