Skip to content

Commit

Permalink
release v5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed May 10, 2023
1 parent 17dd4fd commit 8a7504a
Show file tree
Hide file tree
Showing 23 changed files with 2,811 additions and 2,512 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.30.3
version: 8.5.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmmirror.com
cache: pnpm

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.30.3
version: 8.5.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
registry-url: https://registry.npmmirror.com
cache: pnpm

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.30.3
version: 8.5.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
registry-url: https://registry.npmmirror.com
cache: pnpm

Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"consola",
"esbuild",
"filesize",
"iife",
"nuxt",
"reinstaller",
"saqqdy",
Expand Down
124 changes: 64 additions & 60 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,143 +1,147 @@
# 更新日志
# Changelog

## 2023.05.10 v5.2.0

1. `no-only-tests/no-only-tests` default setting changed to 'warn'
2. upgrade dependency package

## 2023.04.04 v5.1.0

1. 增加对 vue macros 的支持
2. 升级依赖包
1. add support for vue macros
2. upgrade dependencies

## 2023.03.27 v5.0.2

1. `react` `svelte` `nuxt` 包里面增加 vitest-global
1. add vitest-global to the `react` `svelte` `nuxt` package

## 2023.03.27 v5.0.1

1. `vue` 包里面增加 vitest-global
1. add vitest-global to the `vue` package

## 2023.02.14 v5.0.0
## 2023.02.14 v5.0.0 1.

1. 增加 `@eslint-sets/eslint-config-svelte` ,扩展支持 svelte 项目
2. `@eslint-sets/eslint-config-all` 扩展支持 svelte 项目
3. 文档
4. 升级依赖包
1. add `@eslint-sets/eslint-config-svelte` to extend support for the svelte project
2. `@eslint-sets/eslint-config-all` to extend support for the svelte project
3. documentation
4. upgrade dependency packages

## 2023.02.07 v4.3.1

1. 删除不必要的 `peerDependencies`
1. remove unnecessary `peerDependencies`.

## 2023.02.07 v4.3.0

1. 更改 `typescript` 为可选的
2. 构建输出 ts 类型
3. 调整构建输出方式
4. 升级依赖包
1. change `typescript` to optional
2. build output ts type
3. adjust build output method
4. upgrade dependency packages

## 2023.01.31 v4.2.1

1. 删除不必要的 `peerDependencies`
2. 使用 `reinstaller` 装包工具
3. 升级依赖包
1. remove unnecessary `peerDependencies`. 2.
2. use `reinstaller` package loading tool
3. upgrade the dependency package

## 2023.01.13 v4.1.0

1. 增加 jsdoc tsdoc 校验规则
2. 增加 vue-scoped-css 规则
3. 修复一些问题
4. 调整构建框架
5. 升级依赖包
1. add jsdoc and tsdoc validation rules
2. add vue-scoped-css rules
3. fix some issues
4. adjust the build framework
5. upgrade dependency packages

## 2023.01.07 v4.0.0

1. 兼容 eslint v7.x 版本
2. `@eslint-sets/eslint-config-all` 更改为 `@eslint-sets/eslint-config`
3. `eslint-plugin-unicorn` 降级到 v40.1.0
4. 更改`all`包含 reactvuets
5. 移除 vue3-tssimplesimple-tsreact-tscore
1. compatible with eslint v7.x version
2. change `@eslint-sets/eslint-config-all` to `@eslint-sets/eslint-config`
3. `eslint-plugin-unicorn` downgraded to v40.1.0
4. change `all` to include react, vue, ts
5. remove vue3-ts, simple, simple-ts, react-ts, core

## 2023.01.03 v3.3.0

1. 修复 node17 assertion 解析不到的问题
1. fix node17 assertion not parsing issue

## 2022.12.21 v3.2.0

1. 修复 jsx 解析不到的问题
2. 优化代码
1. fix jsx parsing problem
2. optimize the code

## 2022.12.20 v3.1.0

1. 处理依赖包版本不一致的问题
2. 升级依赖包
1. fix inconsistent dependency package versions
2. upgrade dependency packages

## 2022.09.08 v3.0.5

1. 修复`eslint-plugin-ts`配置
2. 升级依赖包
1. fix `eslint-plugin-ts` configuration
2. upgrade dependency packages

## 2022.07.28 v3.0.4

1. 更改`vue`配置`eslint-plugin-vue`版本,修复`no-v-for-template-key-on-child`问题
1. change `vue` configuration `eslint-plugin-vue` version, fix `no-v-for-template-key-on-child` issue

## 2022.07.24 v3.0.3

1. all 包移除 vue 相关插件
1. all package removes vue-related plugins

## 2022.07.22 v3.0.2

1. 修复 ts 包的`comma-dangle` `no-unused-vars` `brace-style`问题
1. fix `comma-dangle`, `no-unused-vars` and `brace-style` issues in ts package

## 2022.07.21 v3.0.1

1. 更新文档
1. Update the documentation

## 2022.07.21 v3.0.0

1. 新增`all`配置,包含 nuxteggvuevue3、ts、react 全部配置
2. 升级依赖包
1. add `all` configuration, including nuxt, egg, vue, vue3, ts, react all configuration
2. upgrade dependency packages

## 2022.05.03 v2.1.5

1. 新增`no-labels`,允许 for 循环的 labels
1. add `no-labels` to allow labels for for loops

## 2022.04.23 v2.1.4

1. 修复 `simple-ts` 解析 ts 报错的问题
2. 所有包显式引入`prettier`插件
1. fix `simple-ts` parsing ts error
2. explicitly introduce `prettier` plugin to all packages

## 2022.04.13 v2.1.3

1. 修复解析 `es6` 的问题
2. 清理一些用不到的 package
1. fix the problem of parsing `es6`.
2. clean up some unused packages

## 2022.04.11 v2.1.1

1. 修复`multiline-ternary`异常
1. fix `multiline-ternary` exception

## 2022.04.11 v2.1.0

1. 更新`basic` `ts`配置
2. 增加`eslint-config-prettier`插件
Update `basic` `ts` configuration 2. add `eslint-config-prettier` plugin

## 2022.04.10 v2.0.5

1. 修复`vue/html-indent`配置
1. fix `vue/html-indent` configuration

## 2022.04.10 v2.0.4

1. 修复`indent`报错
Fix `indent` error

## 2022.04.10 v2.0.3

1. 修复`requireConfigFile`报错
1. fix `requireConfigFile` error

## 2022.04.10 v2.0.2

1. 改用`@babel/eslint-parser`解析器
2. 依赖包升级
1. switch to `@babel/eslint-parser` parser
2. upgrade dependency packages

## 2022.04.05 v2.0.0

1. 重新整理 `egg` `nuxt` `react` `react-ts` `simple` `simple-ts` `vue` `vue3` `vue3-ts` 几套配置,抽离出 basic ts 配置
2. 移除 `merge` 方法
3. 全新的引入方式:
1. reorganize `egg` `nuxt` `react` `react-ts` `simple` `simple-ts` `vue` `vue3` `vue3-ts` sets of configurations, pulling out basic and ts configurations
2. remove the `merge` method
3. new way to introduce

```js
// .eslintrc.js
Expand All @@ -148,6 +152,6 @@ module.exports = {

## 2022.04.01 v1.0.0

1. 新增 `egg` `nuxt` `react` `react-ts` `simple` `simple-ts` `vue` `vue3` `vue3-ts` 几套配置
2. 提供 `merge` 方法,传入自定义配置
3. `typescript` 支持
1. add `egg` `nuxt` `react` `react-ts` `simple` `simple-ts` `vue` `vue3` `vue3-ts` several configuration sets
2. provide `merge` method to pass in custom configurations
3. `typescript` support
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ Eslint config sets for basic/ts/egg/nuxt/react/vue/vue3/svelte

## Package list

- Eslint config sets for all: [@eslint-sets/eslint-config](https://github.com/saqqdy/eslint-sets/tree/master/packages/all)
- Eslint config sets basic: [@eslint-sets/eslint-config-basic](https://github.com/saqqdy/eslint-sets/tree/master/packages/basic)
- Eslint config sets ts: [@eslint-sets/eslint-config-ts](https://github.com/saqqdy/eslint-sets/tree/master/packages/ts)
- Eslint config sets for egg: [@eslint-sets/eslint-config-egg](https://github.com/saqqdy/eslint-sets/tree/master/packages/egg)
- Eslint config sets for nuxt: [@eslint-sets/eslint-config-nuxt](https://github.com/saqqdy/eslint-sets/tree/master/packages/nuxt)
- Eslint config sets for react: [@eslint-sets/eslint-config-react](https://github.com/saqqdy/eslint-sets/tree/master/packages/react)
- Eslint config sets for vue: [@eslint-sets/eslint-config-vue](https://github.com/saqqdy/eslint-sets/tree/master/packages/vue)
- Eslint config sets for vue3: [@eslint-sets/eslint-config-vue3](https://github.com/saqqdy/eslint-sets/tree/master/packages/vue3)
- Eslint config sets for svelte: [@eslint-sets/eslint-config-svelte](https://github.com/saqqdy/eslint-sets/tree/master/packages/svelte)
- Eslint config for all: [@eslint-sets/eslint-config](https://github.com/saqqdy/eslint-sets/tree/master/packages/all)
- Eslint config basic: [@eslint-sets/eslint-config-basic](https://github.com/saqqdy/eslint-sets/tree/master/packages/basic)
- Eslint config ts: [@eslint-sets/eslint-config-ts](https://github.com/saqqdy/eslint-sets/tree/master/packages/ts)
- Eslint config for egg: [@eslint-sets/eslint-config-egg](https://github.com/saqqdy/eslint-sets/tree/master/packages/egg)
- Eslint config for nuxt: [@eslint-sets/eslint-config-nuxt](https://github.com/saqqdy/eslint-sets/tree/master/packages/nuxt)
- Eslint config for react: [@eslint-sets/eslint-config-react](https://github.com/saqqdy/eslint-sets/tree/master/packages/react)
- Eslint config for vue: [@eslint-sets/eslint-config-vue](https://github.com/saqqdy/eslint-sets/tree/master/packages/vue)
- Eslint config for vue3: [@eslint-sets/eslint-config-vue3](https://github.com/saqqdy/eslint-sets/tree/master/packages/vue3)
- Eslint config for svelte: [@eslint-sets/eslint-config-svelte](https://github.com/saqqdy/eslint-sets/tree/master/packages/svelte)

## Install

Expand Down
2 changes: 0 additions & 2 deletions build/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,3 @@ export const alias = {
'@': path.resolve(__dirname, '../src'),
'eslint-sets': path.resolve(__dirname, './')
}

export const jsexclude = /node_modules/
2 changes: 1 addition & 1 deletion build/plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Plugin } from 'rollup'

export const esbuild = (options: Options = {}): Plugin =>
_esbuild({
minify: false, // 避免\u005c被转码
minify: false, // Avoid \u005c being transcoded
sourceMap: options.minify || false,
target: 'es2017',
define: {
Expand Down
20 changes: 10 additions & 10 deletions build/plugins/inject.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { readFileSync } from 'fs'
import injectCode, { type Options } from 'rollup-plugin-inject-code'
import type { Plugin } from 'rollup'

const injectEslintSetsCore: Plugin = {
name: 'inject-eslint-sets-core',
renderChunk(code) {
const ESLINT_SETS_CORE_IIFE = readFileSync(
require.resolve('@eslint-sets/core/lib/index.iife.js'),
'utf-8'
const injectEslintSetsCore = (options: Options): Plugin =>
injectCode(
Object.assign(
{
path: '@eslint-sets/core/lib/index.iife.js',
position: 'before'
},
options
)
return `${ESLINT_SETS_CORE_IIFE};\n;${code}`
}
}
)

export default injectEslintSetsCore
2 changes: 1 addition & 1 deletion build/plugins/terser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { terser as _terser } from 'rollup-plugin-terser'
import _terser from '@rollup/plugin-terser'
import type { Plugin } from 'rollup'

const terser: Plugin = _terser({
Expand Down
6 changes: 3 additions & 3 deletions build/utils/echo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { format } from 'util'
import chalk from 'chalk'

/**
* 输出日志
* echo logs
* @example
*
* @param message - 需要输出的内容
* @param type - 输出的类型
* @param message - log content
* @param type - log type
*/
export function echo(message: string, type?: 'warning' | 'info' | 'error' | 'success'): void {
let output = format(message)
Expand Down
Loading

0 comments on commit 8a7504a

Please sign in to comment.