vscode开发插件

TSLint -- typescript的格式检查

Prettier --  强制格式化工具

ESLint -- es格式化检查

以下为基本配置:

// .eslintsrc.js
const prettierConfig = require('./.prettierrc.js');

/**
 * eslint
 * @ref https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb
 */
module.exports = {
    "root": true,
    "env": {
        "node": true
    },
    "extends": [
        "plugin:vue/essential",
        "eslint:recommended"
    ],
    "rules": {},
    "parserOptions": {
        "parser": "babel-eslint"
    }
};

猜你喜欢

转载自www.cnblogs.com/hellolol/p/11644057.html
今日推荐