Typescript & React & Vue
Typescript & React & Vue
Typescript & React
https://facebook.github.io/create-react-app/docs/adding-typescript
https://www.typescriptlang.org/docs/handbook/react-&-webpack.html
https://github.com/microsoft/TypeScript-React-Starter
https://alligator.io/react/typescript-with-react/
jsx
tsx
Typescript & Vue
https://vuejs.org/v2/guide/typescript.html
ESLint
vue
https://www.npmjs.com/package/eslint-plugin-vue
$ vue add @vue/cli-plugin-eslint
$ npm i -D eslint eslint-plugin-vue
$ yarn add -D eslint eslint-plugin-vue
https://eslint.org/docs/user-guide/configuring
https://eslint.org/docs/user-guide/configuring#specifying-file-extensions-to-lint
$ eslint --ext .js,.vue src
$ eslint "src/**/*.{js,vue}"
.vscode
settings.json
{
"eslint.enable": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "vue", "autoFix": true }
]
}
refs
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/11063032.html
未经授权禁止转载,违者必究!