aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc
blob: e1b739259ac3b9255812cf12d61208c9e0bef7c7 (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
{
  // Extend existing configuration
  // from ESlint and eslint-plugin-react defaults.
  "extends": [
    "eslint:recommended"
    //, "plugin:react/recommended"
  ],
  // Enable ES6 support. If you want to use custom Babel
  // features, you will need to enable a custom parser
  // as described in a section below.
  "parserOptions": {
    "sourceType": "module"
  },
  "env": {
    "browser": true,
    "node": true,
    "es6": true
  },
  // Enable custom plugin known as eslint-plugin-react
  "plugins": [
    // "react"
    "only-ascii"
  ],
  // http://eslint.org/docs/rules/
  "rules": {
    "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": "off",
    "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"],
    //"indent": ["warn", 2],
    "no-tabs": "warn",
    "eol-last": "warn",
    "comma-style": "warn",
    "curly": "warn",
    //"no-var": "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": "✓" }] // "excludePaths": ["i18n.js"]
  }
}