Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Phecda
/
NGPlay
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Phecda
2020-03-02 16:46:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c45f75e8d6f7295ac4b561a60b79e378f6bbddab
c45f75e8
1 parent
518147bc
chore: add prettier & lint-staged
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
1 deletions
.editorconfig
.eslintrc.js
.prettierrc
package.json
yarn.lock
.editorconfig
0 → 100644
View file @
c45f75e
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
...
...
.eslintrc.js
View file @
c45f75e
module
.
exports
=
{
root
:
true
,
extends
:
'@react-native-community'
,
extends
:
[
'@react-native-community'
,
'plugin:prettier/recommended'
]
,
parser
:
'@typescript-eslint/parser'
,
plugins
:
[
'@typescript-eslint'
],
};
...
...
.prettierrc
0 → 100644
View file @
c45f75e
{
"useTabs"
:
false
,
"tabWidth"
:
2
,
"singleQuote"
:
true
,
"trailingComma"
:
"es5"
}
...
...
package.json
View file @
c45f75e
...
...
@@ -29,9 +29,13 @@
"commitizen"
:
"^4.0.3"
,
"cz-conventional-changelog"
:
"^3.1.0"
,
"eslint"
:
"^6.5.1"
,
"eslint-config-prettier"
:
"^6.10.0"
,
"eslint-plugin-prettier"
:
"^3.1.2"
,
"husky"
:
"^4.2.3"
,
"jest"
:
"^24.9.0"
,
"lint-staged"
:
">=10"
,
"metro-react-native-babel-preset"
:
"^0.56.0"
,
"prettier"
:
"1.19.1"
,
"react-test-renderer"
:
"16.9.0"
,
"standard-version"
:
"^7.1.0"
,
"typescript"
:
"^3.7.3"
...
...
@@ -54,7 +58,11 @@
},
"husky"
:
{
"hooks"
:
{
"pre-commit"
:
"lint-staged"
,
"commit-msg"
:
"commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged"
:
{
"*.{js,jsx,ts,tsx}"
:
"eslint --fix"
}
}
...
...
yarn.lock
View file @
c45f75e
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment