From b514d08712dd7ed9b0c12f06ed6eaf1e99230e3c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Nov 2024 12:42:26 +0100 Subject: Add makefile and eslint config. --- .eslintrc.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .eslintrc.js (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..b591bdc --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,17 @@ +module.exports = { + env: { + browser: true, + commonjs: true, + es2021: true, + }, + extends: "eslint:recommended", + parserOptions: { + ecmaVersion: "latest", + }, + rules: { + "no-constant-binary-expression": "error", + indent: [ "warn", "tab", { SwitchCase: 1 } ], + semi: [ "error", "never" ], + "no-unused-vars": [ "error", { "vars": "all", "args": "all", "argsIgnorePattern": "^_" } ], + }, +} -- cgit v1.2.3