diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-02-13 01:18:10 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-02-13 01:18:10 +0100 |
commit | abffe4918cfa069af2323d2d1b23fb24eb48f037 (patch) | |
tree | 096b2f30194ebcc0946051ef168b25fdfc3381e7 | |
parent | 0304f1d2dfff413ba6b108a1bc1a8c13c0878b4c (diff) | |
download | plantagenet-abffe4918cfa069af2323d2d1b23fb24eb48f037.tar.gz |
Add .eslintrc file.
-rw-r--r-- | .eslintrc.js | 17 |
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": "^_" } ], + }, +} |