Skip to content

Commit

Permalink
♻️ Using eslint-config-react-native-bk
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbrentkelly committed Apr 5, 2021
1 parent 7010012 commit 82781bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
25 changes: 1 addition & 24 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,4 @@
module.exports = {
root: true,
extends: ['@react-native-community', 'plugin:@typescript-eslint/recommended'],
rules: {
// Prettier
'prettier/prettier': 1,

// ESLint
'comma-dangle': 0, // Conflicts with prettier
'no-undef': 0, // Conflicts with TS

// TS
'@typescript-eslint/ban-ts-comment': 1,
'@typescript-eslint/no-inferrable-types': 1,
'@typescript-eslint/explicit-member-accessibility': 1,
'@typescript-eslint/explicit-function-return-type': [
1,
{
allowExpressions: true,
},
],

// React
'react/function-component-definition': 1,
'react/jsx-boolean-value': [2, 'always'],
},
extends: ['react-native-bk'],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
},
"devDependencies": {
"@babel/core": "~7.9.0",
"@react-native-community/eslint-config": "^2.0.0",
"@types/react": "~16.9.35",
"@types/react-native": "~0.63.2",
"babel-plugin-module-resolver": "^4.1.0",
"eslint": "^7.14.0",
"eslint-config-react-native-bk": "^0.1.0",
"typescript": "~4.0.0",
"vscode-project-react-native": "^0.2.0"
}
Expand Down

0 comments on commit 82781bc

Please sign in to comment.