Skip to content

Commit

Permalink
Merge pull request #449 from qiniu/qbs
Browse files Browse the repository at this point in the history
sdk 3.x
  • Loading branch information
lzfee0227 authored Jun 22, 2020
2 parents df74103 + 44e6c20 commit b6e543d
Show file tree
Hide file tree
Showing 48 changed files with 6,924 additions and 6,800 deletions.
6 changes: 4 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"useBuiltIns": "usage", // 在文件需要的位置单独按需引入 polyfill
"targets": {
"browsers": ["last 2 versions", "ie >= 8"]
}
},
"modules": "commonjs"
}
]
],
Expand All @@ -18,5 +19,6 @@
}
],
"@babel/proposal-object-rest-spread"
]
],
"ignore": ["**/*.d.ts", "**/*.js.map"]
}
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/src/__mock__
/src/__tests__
/test/*
/test/*
dist
*.js
60 changes: 11 additions & 49 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,13 @@
module.exports = {
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true,
"commonjs": true,
"amd": true,
"worker":true,
"es6":true,
"mocha":true
},
"parserOptions": {
"sourceType": "module",//module
// 想使用的额外的语言特性:
"ecmaFeatures": {
// 允许在全局作用域下使用 return 语句
"globalReturn":true,
// impliedStric
"impliedStrict":true,
"experimentalObjectRestSpread": true
extends: [
'@qiniu'
],
settings: {
"import/resolver": {
node: {
extensions: ['.js', '.ts'],
moduleDirectory: ['node_modules', 'src/']
}
}
},
"rules": {
"no-console": "off",
"no-redeclare": 2,
"keyword-spacing": 1,
"prefer-spread": 0,
"indent":[
0,
2
],
"array-bracket-spacing": [1, "never"],
"comma-spacing": [1, { "before": false, "after": true }],
"no-var": 1,
"eqeqeq": 0,
"brace-style": 1,
"camelcase": 0,
"space-infix-ops": 1,
"no-unused-vars": [1, { "vars": "all", "args": "none" }],
"spaced-comment": [1, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }],
"quotes": [
"error",
"double"
],
"no-shadow": 0,
"semi": [
1,
"always"
]
},
}
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ npm-debug.log
dist
test/config.json
coverage
lib
esm
Loading

0 comments on commit b6e543d

Please sign in to comment.