Skip to content

Commit b22ab76

Browse files
authored
use backpacker-react eslint config (calintamas#187)
1 parent 07b8978 commit b22ab76

File tree

3 files changed

+206
-121
lines changed

3 files changed

+206
-121
lines changed

.eslintrc.js

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
11
module.exports = {
2-
parser: 'babel-eslint',
3-
root: true,
4-
globals: {
5-
__DEV__: false,
6-
fetch: false
7-
},
8-
extends: [
9-
'airbnb',
10-
'prettier',
11-
'prettier/react',
12-
'plugin:import/errors',
13-
'plugin:import/warnings',
14-
'plugin:react-native-a11y/basic',
15-
'plugin:react-hooks/recommended'
16-
],
17-
plugins: ['react-hooks', 'prettier'],
2+
extends: ['backpacker-react'],
183
rules: {
19-
'react/jsx-filename-extension': 'off',
20-
'import/prefer-default-export': 'off',
214
'import/no-extraneous-dependencies': 'off',
22-
'react/jsx-props-no-spreading': 'off',
23-
'no-underscore-dangle': 'off',
245
'react/sort-comp': 'off',
25-
'import/no-cycle': 'error',
26-
'react/prop-types': ['error', { ignore: ['children'] }]
6+
'no-underscore-dangle': 'warn'
277
}
288
};

package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,7 @@
3535
"@testing-library/jest-native": "^4.0.1",
3636
"@testing-library/react-native": "^7.1.0",
3737
"@types/jest": "^26.0.20",
38-
"babel-eslint": "^10.1.0",
39-
"eslint": "^7.10.0",
40-
"eslint-config-airbnb": "^18.0.1",
41-
"eslint-config-prettier": "^8.1.0",
42-
"eslint-plugin-import": "^2.20.1",
43-
"eslint-plugin-jsx-a11y": "^6.2.3",
44-
"eslint-plugin-prettier": "^3.2.0",
45-
"eslint-plugin-react": "^7.19.0",
46-
"eslint-plugin-react-hooks": "^4.0.0",
47-
"eslint-plugin-react-native-a11y": "^2.0.4",
38+
"eslint-config-backpacker-react": "^0.3.0",
4839
"husky": "^3.1.0",
4940
"jest": "^26.6.3",
5041
"lint-staged": "^10.2.2",

0 commit comments

Comments
 (0)