diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-04-06 14:48:43 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-04-18 16:52:23 +0000 |
| commit | 085204dbdf17f379c9a32ea11660accb51b4311d (patch) | |
| tree | dd85139d396f894e69cb66f94859b6d21731f311 /eslint.config.js | |
| parent | 45b706909323ba82035c49eb9d2b2546eeab6a78 (diff) | |
Update dependencies and ECMAScript target
Fix relevant breaking changes.
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..a8f4d4f --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,18 @@ +import { defineConfig, globalIgnores } from "eslint/config"; +import eslint from '@eslint/js'; +import tseslint from 'typescript-eslint'; + +export default defineConfig([ + eslint.configs.recommended, + tseslint.configs.recommended, + { + rules: { + "indent": ["warn", 2, { + "SwitchCase": 1, + }], + "no-plusplus": ["error", { + "allowForLoopAfterthoughts": true, + }], + }, + }, globalIgnores(["**/node_modules", "webAO/lib/", "webAO/golden/", "dist/"]) +]); |
