-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #318 EsLint Update plus General Actions Update * #318 intent issue and dep update --------- Co-authored-by: Douglas Midgley <[email protected]>
- Loading branch information
1 parent
88eb0e8
commit 8ca3988
Showing
12 changed files
with
1,697 additions
and
561 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
|
@@ -11,14 +11,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts your next Release notes as Pull Requests are merged into "main" | ||
- uses: release-drafter/release-drafter@v5 | ||
- uses: release-drafter/release-drafter@v6 | ||
id: create_release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
node-version: 22 | ||
registry-url: https://registry.npmjs.org/ | ||
- uses: HarmvZ/[email protected] | ||
with: | ||
|
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
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,76 @@ | ||
import jsdoc from 'eslint-plugin-jsdoc'; | ||
import eslintConfigPrettier from 'eslint-config-prettier'; | ||
import eslintPluginUnicorn from 'eslint-plugin-unicorn'; | ||
import mochaPlugin from 'eslint-plugin-mocha'; | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
mochaPlugin.configs.flat.recommended, | ||
jsdoc.configs['flat/recommended'], | ||
eslintPluginUnicorn.configs['flat/recommended'], | ||
{ | ||
files: ['**/*.js'], | ||
plugins: { | ||
jsdoc, | ||
}, | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
globals: { | ||
...globals.node, | ||
...globals.mocha, | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
}, | ||
}, | ||
ignores: ['/node_modules/**'], | ||
rules: { | ||
'unicorn/prefer-module': 'off', | ||
'unicorn/numeric-separators-style': 'off', | ||
'jsdoc/check-line-alignment': 2, | ||
'jsdoc/require-jsdoc': [ | ||
'warn', | ||
{ | ||
require: { | ||
FunctionDeclaration: true, | ||
MethodDefinition: true, | ||
ClassDeclaration: true, | ||
ArrowFunctionExpression: false, | ||
FunctionExpression: true, | ||
}, | ||
}, | ||
], | ||
'jsdoc/require-param-type': 'error', | ||
'jsdoc/tag-lines': ['warn', 'any', { startLines: 1 }], | ||
'jsdoc/no-undefined-types': 'error', | ||
}, | ||
|
||
settings: { | ||
jsdoc: { | ||
mode: 'jsdoc', | ||
preferredTypes: { | ||
array: 'Array', | ||
'array.<>': '[]', | ||
'Array.<>': '[]', | ||
'array<>': '[]', | ||
'Array<>': '[]', | ||
Object: 'object', | ||
'object.<>': 'Object.<>', | ||
'object<>': 'Object.<>', | ||
'Object<>': 'Object.<>', | ||
set: 'Set', | ||
'set.<>': 'Set.<>', | ||
'set<>': 'Set.<>', | ||
'Set<>': 'Set.<>', | ||
promise: 'Promise', | ||
'promise.<>': 'Promise.<>', | ||
'promise<>': 'Promise.<>', | ||
'Promise<>': 'Promise.<>', | ||
}, | ||
}, | ||
}, | ||
}, | ||
eslintConfigPrettier, | ||
]; |
Oops, something went wrong.