aboutsummaryrefslogtreecommitdiff
path: root/eslint.config.js
blob: a8f4d4f43774d12308ed3f6dab3497613a9590fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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/"])
]);