Last active
March 12, 2018 15:25
-
-
Save raivieiraadriano92/2b3cd36bc4553801fa956cc896e6beb2 to your computer and use it in GitHub Desktop.
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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true, | |
"jest": true | |
}, | |
"plugins": [ | |
"react-native", | |
"jsx-a11y", | |
"import" | |
], | |
"extends": [ | |
"airbnb", | |
"plugin:react-native/all" | |
], | |
"rules": { | |
"react/jsx-filename-extension": [ | |
"error", | |
{ | |
"extensions": [ | |
".js", | |
".jsx" | |
] | |
} | |
], | |
"global-require": "off", | |
"no-console": "off", | |
"import/prefer-default-export": "off", | |
"no-unused-vars": [ | |
"error", | |
{ | |
"argsIgnorePattern": "^_" | |
} | |
] | |
}, | |
"settings": { | |
"import/resolver": { | |
"babel-module": {} | |
} | |
}, | |
"globals": { | |
"__DEV__": 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
# run | |
$ yarn add global eslint | |
# run | |
$ npm info "eslint-config-airbnb@latest" peerDependencies | |
# copy the dependencies that appeared on your terminal and paste them into "devDependencies" in your package.json file | |
# { | |
# "eslint": "^4.9.0", | |
# "eslint-plugin-import": "^2.7.0", | |
# "eslint-plugin-jsx-a11y": "^6.0.2", | |
# "eslint-plugin-react": "^7.4.0" | |
# } | |
# run | |
$ yarn | |
# run | |
$ yarn add --dev babel-eslint eslint-config-airbnb eslint-plugin-react-native | |
# create the .eslintrc file as what is attached | |
# install eslint extension in your editor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment