leohxj
2/10/2018 - 9:27 AM

with airbnb, prettier

with airbnb, prettier

module.exports = {
  parser: "babel-eslint",
  extends: [
    "airbnb-base",
    "airbnb-base/rules/strict",
    "airbnb/rules/react",
    "prettier",
    "prettier/react"
  ],
  plugins: ["react", "prettier", "import"],
  env: {
    browser: true,
    node: true
  },
  rules: {
    "class-methods-use-this": "off",
    "comma-dangle": "off",
    "global-require": "off",
    "import/no-extraneous-dependencies": "off",
    "import/prefer-default-export": "off",
    "max-len": "off",
    "no-underscore-dangle": "off",
    "react/prefer-stateless-function": "off",
    "no-param-reassign": "off",
    "react/sort-comp": [
      1,
      {
        order: [
          "type-annotations",
          "static-methods",
          "lifecycle",
          "everything-else",
          "render"
        ]
      }
    ]
  }
};