summaryrefslogtreecommitdiff
path: root/client/simple/eslint.config.js
blob: 9dde72a8415e90d99cc211751c7a3f32c80e57f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import globals from "globals";
import pluginJs from "@eslint/js";


/** @type {import('eslint').Linter.Config[]} */
export default [
  pluginJs.configs.recommended,

  // global "ignores"
  // https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
  {
    ignores: ["node_modules/", "dist/"]
  },

  {
    files: [
      "**/*.js",
    ],
    linterOptions: {
      reportUnusedDisableDirectives: "error",
      // noInlineConfig: true
    },
    languageOptions: {
      sourceType: "module",
      globals: {
        ...globals.browser,
      }
    },
    rules: {
      indent: ["error", 2],
    },
  },

];