forked from michaelkli1998/PLP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
042af63
commit 09d2b12
Showing
9 changed files
with
107 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,81 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@react-native-community', | ||
root: true, | ||
parser: 'babel-eslint', | ||
ignorePatterns: [ | ||
'vendor/**/*', | ||
], | ||
rules: { | ||
semi: 'warn', | ||
eqeqeq: 'warn', | ||
'max-len': [ | ||
'warn', | ||
{ | ||
code: 140, | ||
ignoreUrls: true, | ||
ignoreStrings: true, | ||
ignoreComments: true, | ||
ignoreTrailingComments: true, | ||
ignoreTemplateLiterals: true, | ||
}, | ||
], | ||
'eol-last': ['warn', 'always'], | ||
indent: [ | ||
'warn', | ||
4, | ||
{ | ||
VariableDeclarator: 'first', | ||
flatTernaryExpressions: true, | ||
}, | ||
], | ||
'spaced-comment': ['warn', 'always'], | ||
curly: ['warn', 'all'], | ||
'brace-style': [ | ||
'warn', | ||
'1tbs', | ||
{ | ||
allowSingleLine: true, | ||
}, | ||
], | ||
quotes: [ | ||
'warn', | ||
'single', | ||
{ | ||
allowTemplateLiterals: true, | ||
}, | ||
], | ||
'object-curly-spacing': [ | ||
'warn', | ||
'always', | ||
{ | ||
arraysInObjects: false, | ||
}, | ||
], | ||
'prefer-const': 'warn', | ||
'no-debugger': 'error', | ||
'no-unreachable': 'error', | ||
'no-dupe-keys': 'warn', | ||
'no-duplicate-case': 'warn', | ||
'no-duplicate-imports': 'error', | ||
'no-regex-spaces': 'warn', | ||
'no-fallthrough': 'error', | ||
'no-var': 'error', | ||
'no-unused-expressions': 'warn', | ||
'no-trailing-spaces': 'off', | ||
'no-multiple-empty-lines': [ | ||
'warn', | ||
{ | ||
max: 1, | ||
maxBOF: 0, | ||
maxEOF: 1, | ||
}, | ||
], | ||
'sort-imports': [ | ||
'warn', | ||
{ | ||
ignoreCase: true, | ||
allowSeparatedGroups: true, | ||
memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple'], | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
source 'https://rubygems.org' | ||
|
||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version | ||
ruby '3.1.0' | ||
|
||
gem 'cocoapods', '~> 1.11', '>= 1.11.2' | ||
gem 'cocoapods', '~> 1.11', '>= 1.11.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
/** | ||
* @format | ||
*/ | ||
|
||
import 'react-native'; | ||
import React from 'react'; | ||
|
||
import App from '../App'; | ||
|
||
// Note: test renderer must be required after react-native. | ||
// Note: `react-test-renderer` must be after `react-native` | ||
import renderer from 'react-test-renderer'; | ||
|
||
it('renders correctly', () => { | ||
renderer.create(<App />); | ||
renderer.create(<App/>); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
presets: ['module:metro-react-native-babel-preset'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
/** | ||
* @format | ||
*/ | ||
import { AppRegistry } from 'react-native'; | ||
|
||
import {AppRegistry} from 'react-native'; | ||
import App from './App'; | ||
import {name as appName} from './app.json'; | ||
import { name as appName } from './app.json'; | ||
|
||
AppRegistry.registerComponent(appName, () => App); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
/** | ||
* Metro configuration for React Native | ||
* https://github.com/facebook/react-native | ||
* | ||
* @format | ||
*/ | ||
// Metro configuration for React Native: | ||
// https://github.com/facebook/react-native | ||
|
||
module.exports = { | ||
transformer: { | ||
getTransformOptions: async () => ({ | ||
transform: { | ||
experimentalImportSupport: false, | ||
inlineRequires: true, | ||
}, | ||
}), | ||
}, | ||
transformer: { | ||
getTransformOptions: async () => ({ | ||
transform: { | ||
experimentalImportSupport: false, | ||
inlineRequires: true, | ||
}, | ||
}), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters