-
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.
Update dependencies and create DEPENDENCY-NOTES.md
Dependencies are updated to their latest versions. In cases where they are not being updated to their latest versions, add a note to DEPENDENCY-NOTES.md explaining why it is not being updated. Due to changes in the eslint dependency, create an eslint config file. Remove the deprecated .eslintignore and .eslintrc files. Update jest config to use transform property instead of deprecated globals property. Create test/tsconfig.json to use with updated jest config. Update tsconfig to target ES2018 to satisfy updated typescript compiler. Minor changes to usage of commander package in app.ts. Other formatting and style changes in various typescript files in order to satisfy latest eslint rules.
- Loading branch information
1 parent
2b934de
commit 5ef2322
Showing
18 changed files
with
2,848 additions
and
3,856 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
As of 2024 August 22: | ||
|
||
The `npm outdated` command reports the following dependencies as outdated. | ||
They are not being updated at this time for the reasons given below: | ||
|
||
- `@types/node`: don't update until Node 22 is LTS version (currently Node 20). | ||
- `chalk`: major version 5 causes problems for jest. Keep updated to latest 4.x release. | ||
- `flat`: major version 6 is an esmodule. | ||
- `yaml`: changes to `Document.toString()` behavior makes the comments in the config file produced by `sushi init` move around a bunch. |
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: [ | ||
'dist/*', | ||
'coverage/*', | ||
'build*/*', | ||
'**/*.d.ts', | ||
'src/public/', | ||
'src/types/', | ||
'**/generated' | ||
] | ||
}, | ||
...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', | ||
} | ||
} | ||
]; |
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.