Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"plugins": [
"react-native"
],
"extends": [
"eslint:recommended",
"plugin:react-native/all"
],
"parser": "babel-eslint",
"env": {
"react-native/react-native": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"rules":{
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"react-native/no-raw-text": 2
}
}
8 changes: 8 additions & 0 deletions .github/workflows/expo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ name: Expo Build
on: [push,pull_request]

jobs:
eslint:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: stefanoeb/[email protected]
with:
files: src/
build:
name: Build
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.2",
"private": true,
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-plugin-react-native": "^3.8.1",
"jest-expo": "^35.0.0",
"react-test-renderer": "16.0.0",
"standard": "^14.3.1"
Expand Down Expand Up @@ -47,4 +50,4 @@
"redux-thunk": "^2.3.0",
"remote-redux-devtools": "^0.5.16"
}
}
}