mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-19 01:43:35 +08:00
* feat: add prettier and commit hooks * style(*): prettier format * fix(eslint): parsing error: Unexpected token ... * style(eslint): eslint --fix * style(bilibili): fix `no-undef` and `no-unused-vars` * style(jiandan): fix eqeqeq * style(pixiv): disable `no-constant-condition` rule for eslint * fix(pixiv): use template string * style(toutiao): remove unused variables * style(weibo): use `forEach` instead of `map` The array has no return value, you should use `forEach` instead of `map` * chore(hooks): add eslint hooks * chore(hooks): switch from husky to yorkie * style(zhihu): prettier format * style(docs): fix vuepress custom container https://vuepress.vuejs.org/guide/markdown.html#custom-containers * chore(prettier): set a more reasonable `printWidth` value * style(*): better prettier format
40 lines
747 B
INI
40 lines
747 B
INI
# http://editorconfig.org
|
|
root = true
|
|
|
|
[*]
|
|
indent_style = space
|
|
indent_size = 4
|
|
end_of_line = lf
|
|
charset = utf-8
|
|
trim_trailing_whitespace = true
|
|
insert_final_newline = true
|
|
|
|
# Use 4 spaces for the Python files
|
|
[*.py]
|
|
indent_size = 4
|
|
max_line_length = 80
|
|
|
|
# The JSON files contain newlines inconsistently
|
|
[*.json]
|
|
insert_final_newline = ignore
|
|
|
|
# Minified JavaScript files shouldn't be changed
|
|
[**.min.js]
|
|
indent_style = ignore
|
|
insert_final_newline = ignore
|
|
|
|
# Makefiles always use tabs for indentation
|
|
[Makefile]
|
|
indent_style = tab
|
|
|
|
# Batch files use tabs for indentation
|
|
[*.bat]
|
|
indent_style = tab
|
|
|
|
[*.md]
|
|
trim_trailing_whitespace = false
|
|
|
|
# Matches the exact files either package.json or .travis.yml
|
|
[{package.json,.travis.yml}]
|
|
indent_size = 2
|