Skip to content

Commit c180763

Browse files
committed
chore: modify prettier config
1 parent 03177f7 commit c180763

File tree

5 files changed

+25
-38
lines changed

5 files changed

+25
-38
lines changed

.editorconfig

Lines changed: 0 additions & 15 deletions
This file was deleted.

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
lib

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@react-native-community', 'prettier'],
4+
rules: {
5+
'prettier/prettier': [
6+
'error',
7+
{
8+
quoteProps: 'consistent',
9+
singleQuote: true,
10+
tabWidth: 4,
11+
trailingComma: 'es5',
12+
useTabs: false,
13+
},
14+
],
15+
},
16+
};

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"quoteProps": "consistent",
3+
"singleQuote": true,
4+
"tabWidth": 4,
5+
"trailingComma": "es5",
6+
"useTabs": false
7+
}

package.json

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,6 @@
111111
}
112112
}
113113
},
114-
"eslintConfig": {
115-
"root": true,
116-
"extends": [
117-
"@react-native-community",
118-
"prettier"
119-
],
120-
"rules": {
121-
"prettier/prettier": [
122-
"error",
123-
{
124-
"quoteProps": "consistent",
125-
"singleQuote": true,
126-
"tabWidth": 4,
127-
"trailingComma": "es5",
128-
"useTabs": false
129-
}
130-
]
131-
}
132-
},
133-
"eslintIgnore": [
134-
"node_modules/",
135-
"lib/"
136-
],
137114
"react-native-builder-bob": {
138115
"source": "src",
139116
"output": "lib",

0 commit comments

Comments
 (0)