-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependencies and dev dependencies updated based on results of npm audit and npm outdated commands. For dependencies still listed by npm outdated command, provide reasoning in new DEPENDENCY-NOTES file. Minor style updates based on enforcement of style rules. Minor change to CLI command definition based on usage for latest commander package.
- Loading branch information
1 parent
0b7ad3e
commit 26d1856
Showing
9 changed files
with
3,764 additions
and
6,383 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,4 @@ | ||
The `npm outdated` command lists some dependencies as outdated. The reasons for this are given below: | ||
|
||
- `@types/node`: Node's newest LTS version is 20. Keep types at 20 until Node 22 is marked as LTS. | ||
- `chalk`: Version 5 is an esmodule. Keep updated to newest 4.x.x release. |
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,52 @@ | ||
import tsParser from '@typescript-eslint/parser'; | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import js from '@eslint/js'; | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
'out/*', | ||
'coverage/*', | ||
'schema-repo/*', | ||
'rapidjson/*', | ||
'tclap/*', | ||
'**/*.d.ts' | ||
] | ||
}, | ||
...compat.extends('plugin:@typescript-eslint/recommended', 'prettier'), | ||
{ | ||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 2018, | ||
sourceType: 'module' | ||
}, | ||
|
||
rules: { | ||
semi: ['error', 'always'], | ||
|
||
quotes: [ | ||
'error', | ||
'single', | ||
{ | ||
avoidEscape: true | ||
} | ||
], | ||
|
||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-unsafe-declaration-merging': 'off' | ||
} | ||
} | ||
]; |
Oops, something went wrong.