diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-01-15 10:50:30 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-01-15 10:50:30 +0100 |
commit | e0b464ff6cd1dd66a1a81d33385b3558b52bf0be (patch) | |
tree | 31bebd7c3454a0d143ccf0cd1a31bd8fa1438093 /.eslintrc.js | |
parent | 72c4f00c94b012301d09400c3564285099870454 (diff) | |
download | 1989-dawn-of-freedom-e0b464ff6cd1dd66a1a81d33385b3558b52bf0be.tar.gz |
add eslintrc
Diffstat (limited to '.eslintrc.js')
-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..54e057e --- /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", "varsIgnorePattern": "^[CS]_", "argsIgnorePattern": "^_" } ], + }, +} |