1.0.5 • Published 9 months ago

@jsxiaosi/eslint-config-prettier v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@jsxiaosi/eslint-config-prettier

  • 合理的默认配置
  • 支持Vue,支持Typescript,Jsx格式化
  • 使用简单无需繁琐的添加配置

安装

pnpm add -D @jsxiaosi/eslint-config-prettier prettier

配置.prettier.config.js

import prettierConfig from '@jsxiaosi/eslint-config-prettier';

export default {
  ...prettierConfig,
};

配合eslint使用

eslint.config.js 添加配置

import jsxiaosi from '@jsxiaosi/eslint-config';

export default jsxiaosi(
  {
    prettier: {
      usePrettierrc: true,
    },
  },
);

添加命令

{
  "lint:fix": "eslint . --fix"
}

VS Code 自动修复

{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

0.1.0

12 months ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago