Skip to content

Commit

Permalink
Setting up environment and support tools
Browse files Browse the repository at this point in the history
  • Loading branch information
steniowagner committed Feb 9, 2019
1 parent 019abed commit c63519d
Show file tree
Hide file tree
Showing 12 changed files with 9,697 additions and 90 deletions.
23 changes: 23 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"presets": ["module:metro-react-native-babel-preset"],
"plugins": [
[
"babel-plugin-root-import",
{
"rootPathSuffix": "src"
}
]
],
"env": {
"production": {
"plugins": [
[
"babel-plugin-root-import",
{
"rootPathSuffix": "src"
}
]
]
}
}
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
46 changes: 46 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parser": "babel-eslint",
"env": {
"jest": true
},
"plugins": ["react-native", "jsx-a11y", "import"],
"extends": ["airbnb", "plugin:react-native/all"],
"rules": {
"no-plusplus": 0,
"max-len": 0,
"lines-between-class-members": 0,
"no-underscore-dangle": 0,
"import/no-cycle": 0,
"no-alert": 0,
"import/no-extraneous-dependencies": 0,
"react/jsx-max-props-per-line": [1, { "maximum": 1, "when": "always" }],
"react/jsx-first-prop-new-line": [1, "always"],
"react-native/no-inline-styles": 0,
"react/jsx-wrap-multilines": 0,
"react-native/no-raw-text": 0,
"consistent-return": 0,
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js", ".jsx"]
}
],
"global-require": "off",
"no-console": "off",
"import/prefer-default-export": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
]
},
"settings": {
"import/resolver": {
"babel-plugin-root-import": {}
}
},
"globals": {
"__DEV__": true
}
}
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.86.0
^0.89.0
50 changes: 0 additions & 50 deletions App.js

This file was deleted.

3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/

import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import { AppRegistry } from 'react-native';
import App from './src';
import { name as appName } from './app.json';

AppRegistry.registerComponent(appName, () => App);
8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
}
}
}
Loading

0 comments on commit c63519d

Please sign in to comment.