The Wayback Machine - https://web.archive.org/web/20210610104449/https://github.com/NervJS/taro/commit/04c729e93c0bcdf4d3838838b343e56b43abfc5f
Skip to content
Permalink
Browse files
chore: 项目升级 ts 4.1,修复 lint 错误
  • Loading branch information
Chen-jj committed Feb 23, 2021
1 parent 4c5fb26 commit 04c729e93c0bcdf4d3838838b343e56b43abfc5f
Showing with 1,613 additions and 1,383 deletions.
  1. +8 −1 .eslintignore
  2. +5 −2 .eslintrc.js
  3. +1 −1 package.json
  4. +96 −105 packages/babel-preset-taro/yarn.lock
  5. +171 −129 packages/eslint-config-taro/yarn.lock
  6. +1 −1 packages/shared/src/is.ts
  7. +1 −1 packages/shared/src/utils.ts
  8. +4 −3 packages/taro-api/src/index.js
  9. +0 −1 packages/taro-cli/src/__tests__/cli.spec.ts
  10. +1 −1 packages/taro-cli/src/convertor/index.ts
  11. +2 −2 packages/taro-cli/src/create/creator.ts
  12. +2 −2 packages/taro-cli/src/create/project.ts
  13. +0 −1 packages/taro-cli/src/rn/transformJS.ts
  14. +15 −8 packages/taro-cli/src/ui/ui.types.ts
  15. +1 −1 packages/taro-cli/src/util/astConvert.ts
  16. +137 −160 packages/taro-cli/yarn.lock
  17. +1 −0 packages/taro-components/__tests__/polyfill.js
  18. +3 −0 packages/taro-components/__tests__/scroll-view.spec.js
  19. +63 −63 packages/taro-components/virtual-list/react/FixedSizeList.js
  20. +4 −3 packages/taro-components/virtual-list/timer.js
  21. +101 −101 packages/taro-components/yarn.lock
  22. +7 −7 packages/taro-h5/src/api/fileTransfer/downloadFile.js
  23. +8 −8 packages/taro-h5/src/api/fileTransfer/uploadFile.js
  24. +14 −13 packages/taro-h5/src/api/location/chooseLocation.js
  25. +1 −1 packages/taro-h5/src/api/utils/index.js
  26. +2 −2 packages/taro-h5/yarn.lock
  27. +4 −4 packages/taro-helper/src/npm.ts
  28. +6 −6 packages/taro-helper/src/utils.ts
  29. +76 −119 packages/taro-helper/yarn.lock
  30. +2 −2 packages/taro-mini-runner/src/index.ts
  31. +6 −6 packages/taro-mini-runner/src/plugins/MiniPlugin.ts
  32. +0 −1 packages/taro-mini-runner/src/template/comp.ts
  33. +0 −1 packages/taro-mini-runner/src/template/custom-wrapper.ts
  34. +8 −6 packages/taro-mini-runner/src/utils/types.ts
  35. +198 −203 packages/taro-mini-runner/yarn.lock
  36. +1 −1 packages/taro-react/src/index.ts
  37. +1 −1 packages/taro-react/src/reconciler.ts
  38. +11 −4 packages/taro-react/yarn.lock
  39. +4 −4 packages/taro-router/src/api.ts
  40. +2 −2 packages/taro-router/src/init.ts
  41. +2 −2 packages/taro-router/src/router.ts
  42. +0 −1 packages/taro-router/src/scroll.ts
  43. +4 −4 packages/taro-router/yarn.lock
  44. +39 −39 packages/taro-runner-utils/yarn.lock
  45. +5 −4 packages/taro-runtime/src/dom/root.ts
  46. +2 −1 packages/taro-runtime/src/dsl/common.ts
  47. +2 −1 packages/taro-runtime/src/dsl/hooks.ts
  48. +2 −2 packages/taro-runtime/src/dsl/instance.ts
  49. +6 −5 packages/taro-runtime/src/dsl/react.ts
  50. +2 −1 packages/taro-runtime/src/emitter/emitter.ts
  51. +3 −1 packages/taro-runtime/src/next-tick.ts
  52. +2 −1 packages/taro-runtime/src/reconciler.ts
  53. +1 −0 packages/taro-runtime/src/utils/types.ts
  54. +1 −1 packages/taro-service/src/Kernel.ts
  55. +2 −2 packages/taro-service/src/Plugin.ts
  56. +1 −1 packages/taro-service/src/platform-plugin-base.ts
  57. +4 −2 packages/taro-service/src/utils/types.ts
  58. +3 −3 packages/taro-webpack-runner/src/index.ts
  59. +7 −5 packages/taro-webpack-runner/src/util/types.ts
  60. +229 −195 packages/taro-webpack-runner/yarn.lock
  61. +13 −13 packages/taro-with-weapp/src/clone.js
  62. +18 −17 packages/taro-with-weapp/src/index.ts
  63. +2 −2 packages/taro-with-weapp/yarn.lock
  64. +1 −1 packages/taro/types/compile.d.ts
  65. +2 −2 packages/taroize/src/global.ts
  66. +5 −5 packages/taroize/yarn.lock
  67. +287 −95 yarn.lock
@@ -11,9 +11,16 @@ packages/taro-transformer-wx/tt.js
packages/taro-transformer-wx/t.js
packages/taro-cli/src/jdreact/template/*.js
packages/taro-cli/templates
/packages/taro-components/loader
packages/taro-cli/src/rn
packages/taro-components/loader
packages/taro-webpack-runner/src/__tests__/__snapshots__
packages/taro-webpack-runner/src/__tests__/fixtures
packages/taro-mini-runner/src/__tests__/__snapshots__
packages/taro-mini-runner/src/__tests__/fixtures
packages/taro-cli/src/__tests__/fixtures
packages/taro/types
packages/taro-components-rn
packages/taro-rn
packages/taro-rn-runner
packages/taro-router-rn
packages/taro-mini-runner/src/quickapp
@@ -7,21 +7,24 @@ module.exports = {
'plugin:react/recommended'
],
'rules': {
'no-use-before-define': 0,
'no-unused-vars': 'off',
'camelcase': 0,
'@typescript-eslint/explicit-function-return-type': 0,
"indent": "off",
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_', 'args': 'after-used', }],
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-use-before-define': ['warn', { 'functions': false, 'classes': false }],
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/member-delimiter-style': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/ban-ts-comment': 0,
'standard/no-callback-literal': 0,
'no-console': ['error', { allow: ['warn', 'error'] }],
'prefer-spread': 0,
@@ -30,7 +33,7 @@ module.exports = {
'react/jsx-uses-vars': 'warn',
'react/prop-types': 0,
'react/no-find-dom-node': 0,
'no-unused-expressions': 0
'no-unused-expressions': 0,
// 'camelcase': ['error', {allow: ['^internal_', '^unstable_']}]
},
'env': {
@@ -103,7 +103,7 @@
"eslint-loader": "^2.0.0",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.17.0",
"eslint-plugin-jest": "24.1.5",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-promise": "^4.2.1",

Large diffs are not rendered by default.

0 comments on commit 04c729e

Please sign in to comment.