-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #449 from qiniu/qbs
sdk 3.x
- Loading branch information
Showing
48 changed files
with
6,924 additions
and
6,800 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/src/__mock__ | ||
/src/__tests__ | ||
/test/* | ||
/test/* | ||
dist | ||
*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
}, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ npm-debug.log | |
dist | ||
test/config.json | ||
coverage | ||
lib | ||
esm |
Oops, something went wrong.