Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
feat(ESLint): fix the error that vue-tsx could not be parsed😎
Browse files Browse the repository at this point in the history
  • Loading branch information
zoy-l committed Mar 9, 2021
1 parent 6ae1508 commit 4ddf203
Show file tree
Hide file tree
Showing 9 changed files with 264 additions and 47 deletions.
12 changes: 11 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,15 @@
"no-restricted-syntax": "off",
"no-await-in-loop": "off",
"no-continue": "off"
}
},
"overrides": [
{
"files": ["examples/normal-react/*.tsx"],
"extends": ["zmi/react"]
},
{
"files": ["examples/normal-vue/*.tsx", "examples/normal-vue/*.vue"],
"extends": ["zmi/vue"]
}
]
}
7 changes: 0 additions & 7 deletions examples/normal-react/.eslintrc

This file was deleted.

3 changes: 0 additions & 3 deletions examples/normal-vue/.eslintrc

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
]
},
"devDependencies": {
"@babel/core": "^7.13.8",
"@babel/core": "^7.13.10",
"@types/rimraf": "^3.0.0",
"@vue/compiler-sfc": "^3.0.7",
"lerna": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/zmi-babel-factory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@babel/plugin-proposal-pipeline-operator": "7.12.13",
"@babel/plugin-syntax-top-level-await": "7.12.13",
"@babel/plugin-transform-destructuring": "7.13.0",
"@babel/plugin-transform-runtime": "7.13.9",
"@babel/preset-env": "^7.13.9",
"@babel/plugin-transform-runtime": "7.13.10",
"@babel/preset-env": "^7.13.10",
"@babel/preset-react": "^7.12.13",
"@babel/preset-typescript": "^7.13.0",
"@vue/babel-plugin-jsx": "^1.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/zmi-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@babel/register": "^7.13.8",
"@babel/types": "^7.13.0",
"@types/cheerio": "^0.22.24",
"@types/cheerio": "^0.22.25",
"@types/fs-extra": "^9.0.8",
"@types/glob": "^7.1.3",
"@types/inquirer": "^7.3.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/zmi-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"@types/progress-bar-webpack-plugin": "^2.1.0",
"@types/webpack": "4.41.26",
"@types/webpack-bundle-analyzer": "^3.9.1",
"@types/webpack-dev-server": "^3.11.1",
"@types/webpack-dev-server": "^3.11.2",
"@zmi-cli/types": "^1.0.6-alpha.3"
},
"scripts": {
"test": "nerd test",
"get-default-value": "node ./getDefaultValue.js"
},
"dependencies": {
"@babel/core": "^7.13.8",
"@babel/core": "^7.13.10",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@zmi-cli/babel-factory": "^1.0.6-alpha.3",
"@zmi-cli/utils": "^1.0.6-alpha.3",
Expand All @@ -30,7 +30,7 @@
"css-minimizer-webpack-plugin": "^1.2.0",
"css-modules-typescript-loader": "^4.0.1",
"eslint": "^7.21.0",
"eslint-config-zmi": "^1.1.3",
"eslint-config-zmi": "^1.1.5",
"eslint-webpack-plugin": "^2.5.2",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^6.1.1",
Expand Down
275 changes: 246 additions & 29 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 4ddf203

Please sign in to comment.