From 566eb2c9cce799ed8a3becc6d81560f1540eaacf Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 15 Dec 2025 16:30:22 +0100 Subject: Initial Release --- eslint.config.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 eslint.config.js (limited to 'eslint.config.js') diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..9e4f157 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,38 @@ +import js from "@eslint/js"; +import { defineConfig } from "eslint/config"; +import prettier from "eslint-config-prettier/flat"; +import globals from "globals"; + +export default defineConfig([ + js.configs.recommended, + { + files: ["**/*.js"], + plugins: { + js, + }, + extends: [js.configs.recommended, prettier], + rules: { + "no-unused-vars": "warn", + }, + languageOptions: { + globals: { + ...globals.browser, + }, + }, + }, + { + files: ["benchmark/index.js"], + plugins: { + js, + }, + extends: [js.configs.recommended, prettier], + rules: { + "no-unused-vars": "warn", + }, + languageOptions: { + globals: { + ...globals.node, + }, + }, + }, +]); -- cgit