summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-20 23:40:37 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-20 23:42:34 +0200
commitde9da6976586e34bac7275e1001ec5c140e2e9cb (patch)
tree95015163d76263e1aee2f4a21e9b16ac889419ce /.eslintrc.js
parent66040e5bf9a84c83685a18a7fda361c89340f8b6 (diff)
downloadwashingtons-war-de9da6976586e34bac7275e1001ec5c140e2e9cb.tar.gz
Add .eslintrc and .exrc
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js17
1 files changed, 17 insertions, 0 deletions
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": "^_" } ],
+ },
+}