小编Vas*_*tov的帖子

How to remove prettier plugin from ESLint in VS Code?

I've been using prettier plugin for ESLint for a while and now I've got project with different .eslintrc.js. My config use to be like:

module.exports = {
  ...
  extends: [
    'airbnb',
    'prettier',
    'prettier/react',
  ],
  ...
  plugins: [
    'react',
    'prettier',
  ],
  rules: {
    'prettier/prettier': [
      'error',
      {
        'trailingComma': 'es5',
        'singleQuote': true,
        'printWidth': 120,
      }
    ],
    'react/jsx-filename-extension': [1, { 'extensions': ['.js', '.jsx'] }],
  },
  ...
};
Run Code Online (Sandbox Code Playgroud)

I got rid of all of those rules & plugins & extensions, however, I still …

eslint visual-studio-code prettier

1
推荐指数
1
解决办法
5779
查看次数

标签 统计

eslint ×1

prettier ×1

visual-studio-code ×1