sayll/react-webpack-start

View on GitHub
.eslintrc.yml

Summary

Maintainability
Test Coverage
env:
  es6: true
  node: true
  mocha: true
  jest: true

extends:
  - eslint:recommended
  - airbnb

parserOptions:
  ecmaVersion: 7
  ecmaFeatures:
    experimentalObjectRestSpread: true
    jsx : true
  sourceType: module

plugins:
  - react

rules:
  arrow-parens:
    - warn
    - as-needed
  comma-dangle:
    - error
    - only-multiline
  eol-last: off
  import/no-unresolved: off
  linebreak-style: off
  no-console: off
  no-plusplus: off
  no-underscore-dangle: off
  no-unused-vars: warn
  quotes:
    - error
    - single
  react/jsx-uses-vars: warn
  # 非交互标签无法使用鼠标事件
  jsx-a11y/no-static-element-interactions: off
  semi:
    - error
    - always

globals:
  document: false
  window: false
  fetch: true