yarn add eslint babel-eslint -D
./node_modules/.bin/eslint --init
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true
},
"plugins": ["react"],
"rules": {
"react/jsx-filename-extension": [
2,
{
"extensions": [".js", ".jsx"]
}
],
"react/forbid-prop-types": [0],
"react/require-default-props": [0],
"global-require": [0],
"no-underscore-dangle": [0]
}
}
"scripts": {
"lint": "eslint app/",
"lint:fix": "eslint app/ --fix"
},
{
"prettier.eslintIntegration": true,
"editor.formatOnSave": true,
"files.exclude": {
"**/*.git": true,
"**/*.expo": true,
".*": true,
"**/*.DS_Store": true,
"node_modules/": true
}
}