From 2569c6332fb1f9b695b984f2a8f34eaee3f81d89 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 9 Oct 2022 18:26:01 +0200 Subject: Added eslint validation --- .eslintrc.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .eslintrc.js (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..d1074ab --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,36 @@ +module.exports = { + "env": { + "browser": true, + "es2021": true + }, + "extends": "eslint:recommended", + "overrides": [ + { + "files": ["**/*.js"], + "globals": { + "CWDATA": "writable", + }, + }, + ], + "parserOptions": { + "ecmaVersion": "latest" + }, + "rules": { + "indent": [ + "error", + "tab" + ], + "linebreak-style": [ + "error", + "unix" + ], + "quotes": [ + "error", + "double" + ], + "semi": [ + "error", + "always" + ] + } +}; -- cgit v1.2.3