.eslintrc 1.24 KB
Newer Older
李彥志's avatar
李彥志 committed
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
{
  "extends": "airbnb",
  "env": {
    "es6": true,
    "browser": true,
    "node": true,
    "mocha": true
  },
  "parserOptions": {
    "ecmaVersion": 6,
    "ecmaFeatures": {
      "es6": true,
      "forOf": true,
      "jsx": true
    }
  },
  "parser": "babel-eslint",
  "plugins": ["react", "jsx-a11y", "import"],
  "rules": {
    "camelcase": [1, { "properties": "always" }],
    "comma-dangle": 0,
    "class-methods-use-this": 0,
    "global-require": 0,
    "import/prefer-default-export": 0,
    "import/no-extraneous-dependencies": 0,
    "max-len": ["error", 140],
    "no-console": 0,
    "no-mixed-operators": 0,
    "no-param-reassign": 0,
    "no-plusplus": 0,
    "no-underscore-dangle": "off",
    "no-use-before-define": 0,
    "radix": 0,
    "react/prop-types": 0,
    "react/forbid-prop-types": 0,
    "react/jsx-filename-extension": 0,
    "react/prefer-stateless-function": 0,
    "react/require-default-props": 0,
    "linebreak-style": 0,
    "react/destructuring-assignment": 1
  },
  "settings": {
    "import/resolver": "reactnative"
  },
  "globals": {
    "__DEV__": true,
    "user": true,
    "window": true,
    "appService": true,
    "storage": true,
    "userStandard": true,
    "isAllowMoveChart": true,
    "worker": true
  }
}