Skip to content

Commit

Permalink
feat: format commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhironghao committed Jan 10, 2022
1 parent b80f202 commit 5258697
Show file tree
Hide file tree
Showing 133 changed files with 37,726 additions and 15,171 deletions.
29 changes: 0 additions & 29 deletions .babelrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions .browserlistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
> 1%
last 3 versions
iOS >= 8
Android >= 4
Chrome >= 40
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
demo/
dist/
es/
lib/
docs/
types/
*.js
74 changes: 74 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
module.exports = {
extends: [
'airbnb-base',
'prettier',
'prettier/@typescript-eslint',
'plugin:@typescript-eslint/recommended',
],
env: {
browser: true,
node: true,
es6: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
// 末尾不加分号,只有在有可能语法错误时才会加分号
semi: 0,
'@typescript-eslint/semi': 0,
// 箭头函数需要有括号 (a) => {}
'arrow-parens': 0,
'no-use-before-define': 0,
// 关闭不允许回调未定义的变量
'standard/no-callback-literal': 0,
// 关闭副作用的 new
'no-new': 'off',
// 关闭每行最大长度小于 80
'max-len': 0,
// 函数括号前面不加空格
// 关闭要求 require() 出现在顶层模块作用域中
'global-require': 0,
// 关闭关闭类方法中必须使用this
'class-methods-use-this': 0,
// 关闭禁止对原生对象或只读的全局对象进行赋值
'no-global-assign': 0,
// 关闭禁止对关系运算符的左操作数使用否定操作符
'no-unsafe-negation': 0,
// 关闭禁止使用 console
'no-console': 0,
// 关闭禁止末尾空行
'eol-last': 0,
// 关闭强制在注释中 // 或 /* 使用一致的空格
'spaced-comment': 0,
// 关闭禁止对 function 的参数进行重新赋值
'no-param-reassign': 0,
// 强制使用一致的换行符风格 (linebreak-style)
'linebreak-style': ['error', 'unix'],
// 关闭全等 === 校验
eqeqeq: 0,
// 禁止使用拖尾逗号(即末尾不加逗号)
'comma-dangle': 0,
// 关闭强制使用骆驼拼写法命名约定
camelcase: 1,
'import/extensions': 0,
'import/no-unresolved': 0,
'consistent-return': 0,
'no-plusplus': 0,
'no-restricted-globals': 0,
'prefer-promise-reject-errors': 0,
'prefer-destructuring': 0,
'prefer-const': 0,
'no-unused-expressions': 1,
'space-before-function-paren': 1,
'@typescript-eslint/no-empty-function': 0,
'no-shadow': 1,
'no-underscore-dangle': 0,
'no-bitwise': 0,
'import/prefer-default-export': 1,
'@typescript-eslint/no-extra-semi': 1,
'no-multi-assign': 1,
},
}
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@ node_modules/
**/.DS_Store
npm-debug.log
v2/
package-lock.json
dist/*
es/*
lib/*
.idea/*
docs/*
build/*
types/dist/
.eslintcache
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,14 @@ v2/
.babelrc.js
config/
src/
src-old/
tools/
docs/
demo/
package-lock.json
.eslintcache
.browserlistrc
.eslintrc.js
.prettierignore
babel.config.js
V4/
32 changes: 32 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
**/*.svg
package.json
.umi
.umi-production
/dist
.dockerignore
.DS_Store
.eslintignore
*.png
*.toml
docker
.editorconfig
Dockerfile*
.gitignore
.prettierignore
.npmignore
.browserlistrc
LICENSE
.eslintcache
*.lock
yarn-error.log
.history
.prettierrc
public
lib
es
build
docs
doc
README.md
CHANGELOG.md
src-old
15 changes: 10 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# 更新日志

## 0.0.1 (2019-01-10 15:23) [@luoxue <[email protected]>]()

* 开启测试版
* 式例:`Money`
* `toFen`, `toYuan` 方法返回值转换成数字类型
| 版本 | 主要更新功能 | 时间 | 作者 |
| :------: | :------------------------------------------------- | :--------: | :----------: |
| ## 3.3.0 | 默认使用universal link | 2021.1.18 | huangjiaxing |
| ## 3.2.3 | ios增加渠道统计 | 2020.11.2 | huangjiaxing |
| ## 3.2.2 | 升级command-tools,增加eslint等;支持一格app的吊起 | 2020.8.7 | huangjiaxing |
| ## 3.2.1 | 增加配置,支持是否下载 | 2020.7.15 | huangjiaxing |
| ## 3.1.2 | 增加通用链接方式,修改引用的第三方资源地址 | 2020.1.8 | huangjiaxing |
| ## 3.1.0 | 更新文档 | 2020.1.8 | huangjiaxing |
| ## 4.0.0 | 重构项目架构,详情见 [v4](./v4/log.md) | 2021.08.20 | zhironghao |
| ## 4.0.1 | 支持找靓机 ulink | 2021.09.28 | zhironghao |
Loading

0 comments on commit 5258697

Please sign in to comment.