summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-02-13 01:18:10 +0100
committerTor Andersson <tor@ccxvii.net>2024-02-13 01:18:10 +0100
commitabffe4918cfa069af2323d2d1b23fb24eb48f037 (patch)
tree096b2f30194ebcc0946051ef168b25fdfc3381e7
parent0304f1d2dfff413ba6b108a1bc1a8c13c0878b4c (diff)
downloadplantagenet-abffe4918cfa069af2323d2d1b23fb24eb48f037.tar.gz
Add .eslintrc file.
-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": "^_" } ],
+ },
+}