Last active
August 22, 2018 12:42
-
-
Save jeserodz/b9be065119ec37cf77643d71fe5c9eae to your computer and use it in GitHub Desktop.
ESLint Configuration: React Native
This file contains hidden or 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
coverage |
This file contains hidden or 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
{ | |
"extends": ["airbnb", "plugin:jest/recommended"], | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"node": true, | |
"jest": true | |
}, | |
"plugins": [ | |
"jest" | |
], | |
"rules": { | |
"import/no-extraneous-dependencies": false, | |
"react/jsx-filename-extension": false, | |
"react/react-in-jsx-scope": 0, | |
"react/require-default-props": 0, | |
"react/forbid-prop-types": "off", | |
"react/no-did-mount-set-state": 0, | |
"react/prefer-stateless-function": 1, | |
"react/jsx-uses-vars": [2], | |
"jsx-a11y/anchor-is-valid": 0, | |
"no-underscore-dangle": 0, | |
"arrow-body-style": 0, | |
"no-shadow": 0, | |
"consistent-return": 0, | |
"no-nested-ternary": 0, | |
"no-console": 1, | |
"no-case-declarations": 0, | |
"import/prefer-default-export": 0, | |
"import/no-named-as-default": 0, | |
"no-use-before-define": 0 | |
} | |
} |
This file contains hidden or 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
{ | |
"devDependencies": { | |
"axios-mock-adapter": "^1.15.0", | |
"babel-eslint": "^7.2.3", | |
"babel-jest": "22.4.3", | |
"babel-plugin-syntax-object-rest-spread": "^6.13.0", | |
"babel-plugin-transform-class-properties": "^6.24.1", | |
"babel-plugin-transform-remove-console": "^6.9.4", | |
"babel-preset-react-native": "4.0.0", | |
"enzyme": "^3.3.0", | |
"enzyme-adapter-react-16": "^1.1.1", | |
"eslint": "^4.19.1", | |
"eslint-config-airbnb": "^16.1.0", | |
"eslint-plugin-babel": "^4.1.2", | |
"eslint-plugin-import": "^2.11.0", | |
"eslint-plugin-jest": "^21.15.1", | |
"eslint-plugin-jsx-a11y": "^6.0.3", | |
"eslint-plugin-react": "^7.8.1", | |
"flow-bin": "^0.72.0", | |
"jest": "22.4.3", | |
"react-dom": "^16.3.2", | |
"react-test-renderer": "16.3.1", | |
"redux-mock-store": "^1.5.1", | |
"sinon": "^5.0.7" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment