diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-04-06 14:48:43 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-06-06 03:09:27 +0000 |
| commit | 31275da317fd58739974ac49c995bca2f7dbcc08 (patch) | |
| tree | 7b14578ec28cc3106183d5e7e7197d75399d37d1 /eslint.config.js | |
| parent | f9b5d128fbd63760d4aba9965f4f2eeaf3adb33b (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/"]) +]); |
