.eslintrc.yml
author Frank Bessou <frank.bessou@logilab.fr>
Tue, 18 Apr 2017 11:17:45 +0200
changeset 118 bdb941dcdd40
parent 102 02ed873453e8
child 121 2356bccb7de1
permissions -rw-r--r--
Add and apply eslint's comma-spacing rule

extends:
  - eslint:recommended
  - plugin:react/recommended
parserOptions:
  sourceType: "module"
  ecmaFeatures:
    jsx: true
    arrowFunctions: true
    blockBindings: true
    defaultParams: true
    destructuring: true
    forOf: true
    generators: true
    modules: true
    spread: true
    templateStrings: true
env:
  browser: true
  es6: true
  node: true
rules:
  comma-spacing: ["error"]
  react/no-multi-comp: off
  react/jsx-indent-props: [2, 4]
  object-curly-spacing: ["error", "never"]
  object-shorthand: off
  no-unused-vars: ["error", {"argsIgnorePattern": "_$"}]
  indent: ["off", 4, {"VariableDeclarator": 1}]
  quotes: [0]
  key-spacing: [0]
  new-cap: [0]
  no-console: ["error", {"allow": ["warn", "error"]}]
  no-multiple-empty-lines: ["error", {"max":1, "maxEOF": 0, "maxBOF": 0}]
  no-multi-spaces: [0]
  no-shadow: [0]
  no-trailing-spaces: [2]
  no-use-before-define: [2, "nofunc"]
  eqeqeq: [1]
  comma-dangle: ["error", "always-multiline"]
  space-before-function-paren: ["error", "never"]
plugins:
  - react