xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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://eslint.vuejs.org/

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 发布文章使用:只允许注册用户才可以访问!


posted @ 2019-06-21 10:15  xgqfrms  阅读(429)  评论(9编辑  收藏  举报