File: .eslintrc.json

package info (click to toggle)
node-yarnpkg 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 92,980 kB
  • sloc: sh: 323; makefile: 19
file content (42 lines) | stat: -rw-r--r-- 990 bytes parent folder | download
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
39
40
41
42
{
  "extends": "eslint-config-fb-strict",
  "env": {
    "jest": true
  },
  "plugins": [
    "flowtype",
    "yarn-internal",
    "prettier"
  ],
  "rules": {
    "yarn-internal/warn-language": "error",
    "max-len": ["error", 120],
    "prefer-arrow-callback": "off",
    "flowtype/require-valid-file-annotation": ["error", "always"],
    "flowtype/space-after-type-colon": ["error", "always"],
    "flowtype/require-return-type": ["error", "always", {"excludeArrowFunctions": true}],
    "require-await": "error",
    "no-process-exit": "error",
    "no-return-await": "error",
    "sort-keys": "off",
    "prettier/prettier": ["error", {
      "singleQuote": true,
      "trailingComma": "all",
      "bracketSpacing": false,
      "printWidth": 120,
      "parser": "flow"
    }]
  },
  "overrides": [
    {
      "files": [
        "__tests__/fixtures/**/*.js",
        "bin/*.js",
        "src/cli/index.js"
      ],
      "rules": {
        "no-console": "off"
      }
    }
  ]
}