diff --git a/.eslintrc.js b/.eslintrc.js index 61e4c0b..20faf84 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,10 +4,6 @@ const rules = { // If your editor cannot show these to you, occasionally turn this off and run the linter 'no-warning-comments': 0, 'max-len': ['warn', 120], - - '@typescript-eslint/explicit-function-return-type': 'off', - '@typescript-eslint/naming-convention': 'off', - 'node/no-unsupported-features/es-syntax': 'off', } /** @type {import("eslint").Linter.Config} */ @@ -23,7 +19,7 @@ module.exports = { ], extends: [ - '@strv/node/v16', + '@strv/node/v20', '@strv/node/optional', '@strv/node/style', ], @@ -32,7 +28,7 @@ module.exports = { overrides: [{ files: ['**/*.ts', '**/*.mts'], extends: [ - '@strv/node/v16', + '@strv/node/v20', '@strv/node/optional', '@strv/node/style', '@strv/typescript', @@ -40,7 +36,6 @@ module.exports = { ], parserOptions: { project: './tsconfig.json', - ecmaVersion: 2021, }, rules, }], diff --git a/src/bin/generate.ts b/src/bin/generate.ts index 4f5d6e8..1b61dc7 100644 --- a/src/bin/generate.ts +++ b/src/bin/generate.ts @@ -12,6 +12,7 @@ if (!entrypoint || !outfile) { throw new Error('Usage: generate ') } +// eslint-disable-next-line node/no-unsupported-features/es-syntax import(path.resolve(process.cwd(), entrypoint)) .then(async ({ default: theme }: { default: VSCTheme }) => { const data = `${JSON.stringify(theme, null, 2)}\n` diff --git a/src/generators/mkui.ts b/src/generators/mkui.ts index 05b1e5f..85a0ef4 100644 --- a/src/generators/mkui.ts +++ b/src/generators/mkui.ts @@ -4,7 +4,7 @@ import { type CodePalette, } from '@remedy/types' -interface mkuiParams { +interface MKUIParams { ui: UIPalette code: CodePalette } @@ -17,7 +17,7 @@ function ch(hex: number) { return hex / 0xFF } -function mkui({ ui, code }: mkuiParams): UIColourPalette { +function mkui({ ui, code }: MKUIParams): UIColourPalette { return { /** * Base Colours