Skip to content

Instantly share code, notes, and snippets.

@hendrikswan
Last active September 29, 2020 09:18
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save hendrikswan/2153ae77f1496d2b40aa to your computer and use it in GitHub Desktop.
Save hendrikswan/2153ae77f1496d2b40aa to your computer and use it in GitHub Desktop.
Packages and build config for Build Cross Platform React Native Apps with Exponent and Redux
{
"extends": "airbnb/base",
"plugins": [
"react"
],
"env": {
"node": true,
"jasmine": true,
},
"rules": {
"indent": [1, 4],
"no-console": 0,
"no-unused-vars": [1, {"vars": "local", "args": "none"}],
"react/forbid-prop-types": 1,
"react/jsx-boolean-value": 1,
"react/jsx-closing-bracket-location": 1,
"react/jsx-curly-spacing": 1,
"react/jsx-indent-props": 1,
"react/jsx-key": 1,
"react/jsx-max-props-per-line": 1,
"react/jsx-no-duplicate-props": 1,
"react/jsx-no-undef": 1,
"react/jsx-quotes": 1,
"react/jsx-sort-prop-types": 1,
"react/jsx-sort-props": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-danger": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-direct-mutation-state": 1,
"react/no-multi-comp": 1,
"react/no-set-state": 1,
"react/no-unknown-property": 1,
"react/prefer-es6-class": 1,
"react/prop-types": 1,
"react/react-in-jsx-scope": 1,
"react/require-extension": 1,
"react/self-closing-comp": 1,
"react/sort-comp": 1,
"react/wrap-multilines": 1,
"id-length": 0,
},
"ecmaFeatures": {
"jsx": true
},
}
{
"name": "PluralTodo",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start"
},
"dependencies": {
"babel-eslint": "4.1.6",
"eslint": "1.10.3",
"eslint-config-airbnb": "2.1.1",
"eslint-plugin-react": "3.12.0",
"react-native": "0.19.0",
"react-native-swipeout": "2.0.12",
"redux": "3.3.1"
}
}
@ashleyconnor
Copy link

ashleyconnor commented Sep 3, 2016

That trailing comma needs removing on lines 8, 42 and 46.

@amingilani
Copy link

Hendrik, this config file seems to throw errors and deprecation warnings. Please consider updating it?

@MatthewJamesBoyle
Copy link

No issues from me @amingilani, you sure you copied it correctly and put the .eslintrc file in your project base?

@jewles999
Copy link

Yes, just remove commas where the error indicator is. Like @ashleyconnor commented.

@michaelmano
Copy link

michaelmano commented Nov 16, 2017

@hendrikswan, @ashleyconnor mentioned that your .eslintrc is incorrect JSON in 2016 and this file is being mentioned in the videos. it should really be updated. Line 8, line 42 and line 46 remove trailing commas.

@saurabh-leo
Copy link

@hendrikswan, i just created the react-native app with version "0.53.0" and now i getting Navigator issue. Can u please tell me how i fix it. Actually i was watching your Build Cross Platform React Native Apps with Exponent and Redux tutorial on pluralsight and making the ios app and now i'm stuck in Navigator issue. Please let me know how i fix it.

@2kiranns
Copy link

@hendrikswan, I just started learning react native, and going through your video @ PluralSight "Build Cross Platform React Native Apps with Exponent and Redux". Hence here. I am getting the error "Cannot find module 'eslint-plugin-react'" in Atom. I have installed linter 2.3.0, linter-eslint 8.5.2 packages in Atom & installed eslint, eslint-plugin-react through npm i -g eslint & npm i -g eslint-plugin-react. What could be wrong?

@Dhruvsahu9
Copy link

In package.json it should be name="pluraltodo" instead of "PluralTodo".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment