AlloyTeam / eslint-config-alloy

Progressive ESLint config for your React/Vue/TypeScript projects
https://alloyteam.github.io/eslint-config-alloy/
2.65k stars 317 forks source link

使用webstorm开发,如何使用alloy和prettier #228

Closed eeezae closed 2 years ago

eeezae commented 2 years ago

看了一下配置都是vscode的,vue3+ts开发webstorm可以使用吗,目前按照官方文档配置了一下没有报错,但是也没有效果

eeezae commented 2 years ago

.eslintrc.js文件

module.exports = {
  extends: [
    'alloy',
    'alloy/vue',
    'alloy/typescript',
  ],
  env: {
    // 你的环境变量(包含多个预定义的全局变量)
    //
    // browser: true,
    // node: true,
    // mocha: true,
    // jest: true,
    // jquery: true
  },
  globals: {
    // 你的全局变量(设置为 false 表示它不允许被重新赋值)
    //
    // myGlobal: false
  },
  rules: {
    // 自定义你的规则
  },
};