-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade ESLint, fix many jsdoc warnings
- Loading branch information
1 parent
7af8b12
commit 21a8da1
Showing
113 changed files
with
1,018 additions
and
789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import jsdoc from 'eslint-plugin-jsdoc'; | ||
import json from 'eslint-plugin-json'; | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
json.configs.recommended, | ||
jsdoc.configs['flat/recommended'], | ||
{ | ||
files: ['**/*.js'], | ||
plugins: { | ||
jsdoc, | ||
}, | ||
rules: { | ||
'jsdoc/require-param-description': 'off', | ||
'jsdoc/require-returns-description': 'off', | ||
'jsdoc/require-property-description': 'off', | ||
} | ||
}, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
|
||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
|
||
rules: { | ||
indent: ['error', 4, { | ||
SwitchCase: 1, | ||
}], | ||
|
||
'linebreak-style': ['error', 'unix'], | ||
|
||
'no-unused-vars': ['error', { | ||
vars: 'all', | ||
args: 'none', | ||
ignoreRestSiblings: false, | ||
}], | ||
|
||
semi: ['error', 'always'], | ||
}, | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.