Skip to content

Commit 4283017

Browse files
authored
chore: move lint config (#204)
1 parent b840f00 commit 4283017

File tree

4 files changed

+615
-1086
lines changed

4 files changed

+615
-1086
lines changed

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'@react-native',
5+
'plugin:prettier/recommended',
6+
'plugin:jest/recommended',
7+
],
8+
rules: {},
9+
ignorePatterns: ['lib/*', 'node_modules/*'],
10+
};

.prettierrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module.exports = {
2-
printWidth: 100,
2+
quoteProps: 'consistent',
33
singleQuote: true,
4+
tabWidth: 2,
45
trailingComma: 'es5',
6+
useTabs: false,
57
};

package.json

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"devDependencies": {
5454
"@commitlint/config-conventional": "^17.0.2",
5555
"@evilmartians/lefthook": "^1.2.2",
56-
"@react-native-community/eslint-config": "^3.0.2",
56+
"@react-native/eslint-config": "^0.72.2",
5757
"@react-navigation/elements": "^1.3.17",
5858
"@react-navigation/native": "^6.1.6",
5959
"@release-it/conventional-changelog": "^5.0.0",
@@ -69,7 +69,7 @@
6969
"pod-install": "^0.1.0",
7070
"prettier": "^2.0.5",
7171
"react": "18.2.0",
72-
"react-native": "0.71.10",
72+
"react-native": "0.72.2",
7373
"react-native-builder-bob": "^0.20.4",
7474
"react-native-safe-area-context": "^4.5.3",
7575
"react-test-renderer": "^18.2.0",
@@ -107,36 +107,6 @@
107107
}
108108
}
109109
},
110-
"eslintConfig": {
111-
"root": true,
112-
"extends": [
113-
"@react-native-community",
114-
"prettier"
115-
],
116-
"rules": {
117-
"prettier/prettier": [
118-
"error",
119-
{
120-
"quoteProps": "consistent",
121-
"singleQuote": true,
122-
"tabWidth": 2,
123-
"trailingComma": "es5",
124-
"useTabs": false
125-
}
126-
]
127-
}
128-
},
129-
"eslintIgnore": [
130-
"node_modules/",
131-
"lib/"
132-
],
133-
"prettier": {
134-
"quoteProps": "consistent",
135-
"singleQuote": true,
136-
"tabWidth": 2,
137-
"trailingComma": "es5",
138-
"useTabs": false
139-
},
140110
"react-native-builder-bob": {
141111
"source": "src",
142112
"output": "lib",

0 commit comments

Comments
 (0)