aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.cjs
blob: 92bb15f21d98a1d3c2ad8579bdbdba5bd7a265e4 (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
35
36
37
38
// ESLint configuration
module.exports = {
  env: {
    browser: true,
    es2021: true,
  },
  root: true,
  extends: [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended",
    "plugin:lit-a11y/recommended",
  ],
  overrides: [],
  parserOptions: {
    ecmaVersion: "latest",
    sourceType: "module",
  },
  plugins: [
    "@typescript-eslint",
    "lit-a11y",
  ],
  rules: {
    "@typescript-eslint/ban-ts-comment": "warn",
    "@typescript-eslint/no-explicit-any": "warn",
    "@typescript-eslint/no-unused-vars": "warn",
  },
  ignorePatterns: [
    "**/next.config.js",
    "bazel-bin",
    "bazel-out",
    "bazel-pigweed",
    "bazel-testlogs",
    "node-modules",
    "pw_web/log-viewer/src/assets/**",
    "pw_web/log-viewer/src/legacy/**/*",
    "pw_web/log-viewer/src/models/**",
  ],
};