.eslintrc.yml
author Frank Bessou <frank.bessou@logilab.fr>
Wed, 19 Apr 2017 11:50:55 +0200
changeset 132 2b6ce8199a46
parent 129 ce4947aeebc1
child 170 94800ba78d15
permissions -rw-r--r--
Add a 'test:ci' script with not colored output for Jenkins

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-dangle: ["error", "always-multiline"]
  comma-spacing: ["error"]
  eqeqeq: [1]
  import/first: "error"
  import/newline-after-import: "error"
  indent: ["off", 4, {"VariableDeclarator": 1}]
  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-sequences: "error"
  no-shadow: [0]
  no-trailing-spaces: [2]
  no-unused-vars: ["error", {"argsIgnorePattern": "_$"}]
  no-use-before-define: [2, "nofunc"]
  no-var: "error"
  object-curly-spacing: ["error", "never"]
  object-shorthand: off
  prefer-const: "error"
  quotes: [0]
  react/jsx-indent-props: [2, 4]
  react/no-multi-comp: off
  space-before-function-paren: ["error", "never"]
plugins:
  - react
  - import