Skip to content

Commit

Permalink
Add configuration files
Browse files Browse the repository at this point in the history
- Configuration files for ESLint and Editor
  • Loading branch information
MrBr committed Jan 20, 2017
1 parent 3176cf4 commit b2266e1
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .editorconfig
@@ -0,0 +1,31 @@
# http://editorconfig.org
root = true

# All files
[*]
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

# JS files
[*{.js,.jsx}]
indent_style = space
indent_size = 2

# JSON files
[*.json]
indent_style = space
indent_size = 2

# Java files
[*.java]
indent_style = space
indent_size = 4

# Objective C files
[*{.h,.m,.mm}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
6 changes: 6 additions & 0 deletions .eslintignore
@@ -0,0 +1,6 @@
**/dist/*
**/node_modules/*
**/server.js
**/webpack.config*.js
**/test-utils/setup.js

22 changes: 22 additions & 0 deletions .eslintrc
@@ -0,0 +1,22 @@
{
"extends": "airbnb",
"env": {
"mocha": true
},
"plugins": [
"react-native"
],
"parser": "babel-eslint",
"rules": {
"no-empty-label": 0,
"no-console": 0,
"import/no-unresolved": 0,
"global-require": 0,
"no-underscore-dangle": 0,
"space-before-keywords": 0,
"space-after-keywords": 0,
"space-return-throw-case": 0,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2
}
}

0 comments on commit b2266e1

Please sign in to comment.