Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #120

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions DEPENDENCY-NOTES.md
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.
52 changes: 52 additions & 0 deletions eslint.config.mjs
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'
}
}
];
Loading
Loading