diff options
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/"]) +]); |
