Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorin committed Sep 28, 2024
1 parent 9a13db0 commit 3cea5dd
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
43 changes: 43 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
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: ["**/bin/", "**/test/"],
}, ...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
), {
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.node,
},

parser: tsParser,
ecmaVersion: 2021,
sourceType: "module",
},

settings: {
files: ["source/**/*.ts"],
},

rules: {},
}];
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"test": "mocha"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@types/extract-zip": "^2.0.1",
"@types/fs-extra": "^11.0.1",
"@types/html-minifier-terser": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion source/generator/website/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const argv = yargs
.help().argv as YamlGeneratorArgs

async function execute() {
// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-require-imports
const version = require(
P.join(__dirname, "../../../", "package.json"),
).version
Expand Down

0 comments on commit 3cea5dd

Please sign in to comment.