Skip to content

Instantly share code, notes, and snippets.

@icflorescu
Created December 20, 2016 22:38
Show Gist options
  • Select an option

  • Save icflorescu/93902c5f9670b9034901c0e962c43fca to your computer and use it in GitHub Desktop.

Select an option

Save icflorescu/93902c5f9670b9034901c0e962c43fca to your computer and use it in GitHub Desktop.
.eslintrc for react-native
parser: babel-eslint
extends:
- eslint:recommended
- plugin:react/recommended
plugins:
- react
- react-native
env:
browser: true
rules:
quotes:
- warn
- single
- allowTemplateLiterals: true
yoda: warn
no-shadow: warn
array-bracket-spacing: warn
comma-style: warn
indent:
- warn
- 2
- VariableDeclarator:
var: 2
let: 2
const: 3
max-len:
- warn
- 120
-
ignoreComments: true
ignoreUrls: true
ignoreStrings: true
ignoreTemplateLiterals: true
no-console: warn
react-native/no-unused-styles: error
react/require-render-return: error
...
"devDependencies": {
...
"eslint": "^3.12.2",
"eslint-plugin-react": "^6.8.0",
"eslint-plugin-react-native": "^2.2.1",
...
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment