Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add single instance multi-multipartUpload interface warning #1163

Open
wants to merge 2 commits into
base: 7.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
quote_type = single

[*.md]
trim_trailing_whitespace = false
30 changes: 14 additions & 16 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
node_modules/
build/
coverage/
.tmp/
.git/
lib/browser/version.js
dist/
es/
lib/
node_modules/
**/*.min.js
**/*-min.js
**/*.bundle.js
example/
test/
browser-build.js
shims/
example/node_modules/
example/public/
example/public/index.js
test/.tmp/
test/browser/.tmp
test/browser/build
test/benchmark/
test/fixtures/
task/
browser-build.js
es
cjs
lib/
karma.conf.js
publish-check.js
publish.js
49 changes: 16 additions & 33 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,20 @@
/* eslint max-len: [0] */
module.exports = {
extends: ['airbnb', 'eslint-config-ali/typescript'],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
},
env: {
browser: true,
node: true,
es6: true,
mocha: true,
jasmine: true,
jest: true,
},
extends: ['eslint-config-ali/typescript/node', 'prettier', 'prettier/@typescript-eslint'],
rules: {
indent: ['error', 2],
// override default options
'no-underscore-dangle': [0],
'no-plusplus': [0],
'no-return-await':[0],
'@typescript-eslint/no-require-imports': [0],
'node/prefer-global/buffer': [0],
'import/newline-after-import': [0],
'no-param-reassign': [0],
'max-len': ['warn', 120, 2, {
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}],
'no-buffer-constructor': [2],
'comma-dangle': [0],
'import/prefer-default-export': [0],
'implicit-arrow-linebreak': [0],
'@typescript-eslint/no-unused-vars': [0],
}
'require-atomic-updates': [0],
'@typescript-eslint/consistent-type-definitions': [0],
'@typescript-eslint/restrict-plus-operands': [0],
'@typescript-eslint/explicit-member-accessibility': [0],
'@typescript-eslint/no-this-alias': [0],
'node/prefer-promises/fs': [0],
'no-console': [0],
'@typescript-eslint/no-inferrable-types': [0],
'no-await-in-loop': [0],
'no-throw-literal': [0],
'@typescript-eslint/member-ordering': [0],
},
};
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
. "$(dirname "$0")/_/husky.sh"

npm run lint-staged
npm run f2elint-scan
10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
printWidth: 100,
tabWidth: 2,
semi: true,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'always',
};
4 changes: 3 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
module.exports = {
extends: ['ali'],
};
Loading