From b74496b192b6bf2d097066deb6981b50ad22d819 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 30 Jan 2025 20:41:22 +0100 Subject: [web-client] simple theme: eslint JS source files Signed-off-by: Markus Heiser --- client/simple/eslint.config.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 client/simple/eslint.config.js (limited to 'client/simple/eslint.config.js') diff --git a/client/simple/eslint.config.js b/client/simple/eslint.config.js new file mode 100644 index 000000000..9dde72a84 --- /dev/null +++ b/client/simple/eslint.config.js @@ -0,0 +1,34 @@ +import globals from "globals"; +import pluginJs from "@eslint/js"; + + +/** @type {import('eslint').Linter.Config[]} */ +export default [ + pluginJs.configs.recommended, + + // global "ignores" + // https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores + { + ignores: ["node_modules/", "dist/"] + }, + + { + files: [ + "**/*.js", + ], + linterOptions: { + reportUnusedDisableDirectives: "error", + // noInlineConfig: true + }, + languageOptions: { + sourceType: "module", + globals: { + ...globals.browser, + } + }, + rules: { + indent: ["error", 2], + }, + }, + +]; -- cgit v1.2.3