.eslintrc 841 字节
Newer Older
K
Kyle Shockey 已提交
1 2 3 4 5
{
  "parser": "babel-eslint",

  "env": {
    "browser": true,
K
Kyle Shockey 已提交
6 7
    "node": true,
    "es6": true
K
Kyle Shockey 已提交
8 9 10 11 12 13 14 15
  },

  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    }
  },

16 17 18 19
  "extends": [
    "eslint:recommended",
    "plugin:react/recommended"
  ],
K
Kyle Shockey 已提交
20 21

  "plugins": [
22
    "react",
23 24
    "mocha",
    "import"
K
Kyle Shockey 已提交
25 26 27 28 29
  ],

  "rules": {
    "semi": [2, "never"],
    "strict": 0,
K
Kyle Shockey 已提交
30
    "quotes": [2, "double", { "allowTemplateLiterals": true }],
K
Kyle Shockey 已提交
31
    "no-unused-vars": 2,
K
Kyle Shockey 已提交
32 33 34 35 36 37 38 39
    "no-multi-spaces": 1,
    "camelcase": 1,
    "no-use-before-define": [2,"nofunc"],
    "no-underscore-dangle": 0,
    "no-unused-expressions": 1,
    "comma-dangle": 0,
    "no-console": ["error", { allow: ["warn", "error"] }],
    "react/jsx-no-bind": 1,
40
    "react/display-name": 0,
41 42
    "mocha/no-exclusive-tests": "error",
    "import/no-extraneous-dependencies": [2]
K
Kyle Shockey 已提交
43 44
  }
}