Skip to content

Instantly share code, notes, and snippets.

@skoshy
Last active August 27, 2018 22:03
Show Gist options
  • Save skoshy/2e102caf33cf3c93ea8fb798188ea937 to your computer and use it in GitHub Desktop.
Save skoshy/2e102caf33cf3c93ea8fb798188ea937 to your computer and use it in GitHub Desktop.
Default ESLint Config
env:
node: true # this is the best starting point
browser: true # for react web
es6: true # enables es6 features
parser: "babel-eslint" # needed to make babel stuff work properly
parserOptions:
ecmaVersion: 6
sourceType: module
ecmaFeatures:
jsx: true
plugins:
- "react"
extends:
- "plugin:react/recommended"
- "airbnb"
rules:
react/prop-types:
- "warn"
- skipUndeclared: true
react/jsx-filename-extension:
- 1
- extensions:
- ".js"
- ".jsx"
react/prefer-stateless-function:
- 1
jsx-a11y/anchor-is-valid:
- 0
arrow-body-style: # unsure if this is the best setting
- 0
no-multi-spaces:
- 0
- "ignoreEOLComments": true
react/jsx-no-duplicate-props:
- 2
- ignoreCase: false
no-empty:
- 2
- allowEmptyCatch: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment