Skip to content

Commit

Permalink
updated linter packages & parser
Browse files Browse the repository at this point in the history
  • Loading branch information
calebnance committed Oct 8, 2020
1 parent b399a76 commit 03dce33
Show file tree
Hide file tree
Showing 6 changed files with 614 additions and 313 deletions.
15 changes: 8 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"extends": ["airbnb", "prettier"],
"parser": "babel-eslint",
"plugins": ["prettier"],
"plugins": ["prettier", "eslint-plugin-import-helpers"],
"rules": {
"prettier/prettier": ["error"],
"no-use-before-define": 0,
"react/forbid-prop-types": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-fragments": 0
},
"globals": {
"__DEV__": 0,
"describe": 0,
"expect": 0,
"it": 0,
"jest": 0
"__DEV__": "readonly",
"describe": "readonly",
"expect": "readonly",
"it": "readonly",
"jest": "readonly"
}
}
5 changes: 3 additions & 2 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { StatusBar } from 'react-native';
import { AppLoading } from 'expo';
import { func } from './src/constants';

// main navigation stack
import Stack from './src/navigation/Stack';

export default class App extends React.Component {
constructor(props) {
super(props);
constructor() {
super();

this.state = {
isLoading: true
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"expo": {
"name": "Expo Uber",
"description": "uber clone with expo",
"description": "Uber: UI Clone with React Native & Expo",
"scheme": "uberclone",
"slug": "uberclone",
"privacy": "public",
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(api) {
module.exports = function (api) {
api.cache(true);

return {
Expand Down
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "expo-uber",
"version": "0.0.1",
"description": "uber clone with expo",
"description": "Uber: UI Clone with Expo",
"author": "Caleb Nance",
"license": "MIT",
"keywords": [
Expand All @@ -10,7 +10,6 @@
"react navigation",
"uber"
],
"private": true,
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"dev": "expo start",
Expand Down Expand Up @@ -43,22 +42,25 @@
"react-navigation-stack": "^2.8.2"
},
"devDependencies": {
"@babel/core": "^7.8.6",
"babel-eslint": "^10.0.2",
"@babel/core": "^7.11.5",
"babel-eslint": "^10.1.0",
"babel-preset-expo": "^8.3.0",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.13.0",
"prettier": "^1.17.1"
"eslint": "^7.8.1",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-import-helpers": "^1.1.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"prettier": "^2.1.1"
},
"prettier": {
"singleQuote": true
"singleQuote": true,
"trailingComma": "none"
},
"eslintIgnore": [
"babel.config.js"
]
],
"private": true
}
Loading

0 comments on commit 03dce33

Please sign in to comment.