Skip to content

Commit

Permalink
chore: modify prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
dohooo committed Nov 3, 2021
1 parent 03177f7 commit c180763
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 38 deletions.
15 changes: 0 additions & 15 deletions .editorconfig

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
lib
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
root: true,
extends: ['@react-native-community', 'prettier'],
rules: {
'prettier/prettier': [
'error',
{
quoteProps: 'consistent',
singleQuote: true,
tabWidth: 4,
trailingComma: 'es5',
useTabs: false,
},
],
},
};
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5",
"useTabs": false
}
23 changes: 0 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,29 +111,6 @@
}
}
},
"eslintConfig": {
"root": true,
"extends": [
"@react-native-community",
"prettier"
],
"rules": {
"prettier/prettier": [
"error",
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5",
"useTabs": false
}
]
}
},
"eslintIgnore": [
"node_modules/",
"lib/"
],
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down

0 comments on commit c180763

Please sign in to comment.