Skip to content

Commit

Permalink
chore: upgrade Node.js ESLint ruleset to v20
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Dec 11, 2023
1 parent 62c1b1c commit c685b05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} */
Expand All @@ -23,7 +19,7 @@ module.exports = {
],

extends: [
'@strv/node/v16',
'@strv/node/v20',
'@strv/node/optional',
'@strv/node/style',
],
Expand All @@ -32,15 +28,14 @@ module.exports = {
overrides: [{
files: ['**/*.ts', '**/*.mts'],
extends: [
'@strv/node/v16',
'@strv/node/v20',
'@strv/node/optional',
'@strv/node/style',
'@strv/typescript',
'@strv/typescript/style',
],
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 2021,
},
rules,
}],
Expand Down
1 change: 1 addition & 0 deletions src/bin/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ if (!entrypoint || !outfile) {
throw new Error('Usage: generate <entrypoint> <outfile>')
}

// 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`
Expand Down
4 changes: 2 additions & 2 deletions src/generators/mkui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type CodePalette,
} from '@remedy/types'

interface mkuiParams {
interface MKUIParams {
ui: UIPalette
code: CodePalette
}
Expand All @@ -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
Expand Down

0 comments on commit c685b05

Please sign in to comment.