aboutsummaryrefslogtreecommitdiff
path: root/vnext/.eslintrc
blob: 74fc921af6bff923c77120fa36bc8abda8a98163 (plain) (blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
  "extends": [
    "eslint:recommended",
    "plugin:react/recommended",
    "plugin:jest/recommended"
  ],
  "parser": "babel-eslint",
  "parserOptions": {
    "sourceType": "module",
    "allowImportExportEverywhere": false,
    "codeFrame": false
  },
  "env": {
    "browser": true,
    "node": true,
    "es6": true,
    "jest/globals": true
  },
  "plugins": [
    "babel",
    "react",
    "jest",
    "only-ascii"
  ],
  "rules": {
    "strict": 0,
    "no-console": "off",
    "no-underscore-dangle": "warn",
    "quotes": ["error", "single"],

    "no-const-assign": "warn",
    "no-this-before-super": "warn",
    "no-unreachable": "warn",
    "no-undef": "warn",
    "constructor-super": "warn",
    "valid-typeof": "warn",
    "no-eq-null": "warn",
    "no-shadow-restricted-names": "warn",
    "no-trailing-spaces": "warn",
    "semi": "warn",
    "keyword-spacing": "warn",
    "block-spacing": "warn",
    "arrow-spacing": "warn",
    "semi-spacing": "warn",
    "brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
    "dot-location": ["warn", "property"],
    "no-tabs": "warn",
    "eol-last": "warn",
    "comma-style": "warn",
    "curly": "warn",
    "no-shadow": "off",
    "no-cond-assign": "off",
    "no-sparse-arrays": "off",
    "no-unused-vars": "off",
    "no-useless-escape": "off",

    "only-ascii/only-ascii": ["warn", { "allowedChars": "✓" }],
    
    "jest/no-disabled-tests": "warn",
    "jest/no-focused-tests": "error",
    "jest/no-identical-title": "error",
    "jest/prefer-to-have-length": "warn",
    "jest/valid-expect": "error"
  }
}