Skip to content

Instantly share code, notes, and snippets.

@ikr
Last active August 29, 2015 14:22
Show Gist options
  • Save ikr/5a5ee761c586685d4708 to your computer and use it in GitHub Desktop.
Save ikr/5a5ee761c586685d4708 to your computer and use it in GitHub Desktop.
My ESLint config for React/ES6/JSX code
env:
browser: true
mocha: true
es6: true
plugins:
- react
ecmaFeatures:
modules: true
jsx: true
rules:
no-console: 1
no-reserved-keys: 2
quotes:
- 2
- single
no-else-return: 2
no-param-reassign: 2
no-self-compare: 2
no-throw-literal: 2
no-void: 2
no-warning-comments: 2
radix: 2
wrap-iife: 2
no-undefined: 2
indent:
- 2
- 4
brace-style:
- 2
- '1tbs'
no-lonely-if: 2
no-multiple-empty-lines: 2
no-nested-ternary: 2
padded-blocks:
- 2
- never
space-after-keywords:
- 2
- always
space-before-blocks:
- 2
- always
space-before-function-paren:
- 2
-
anonymous: always
named: never
space-in-brackets:
- 2
- never
space-in-parens:
- 2
- never
no-var: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment