Skip to content

Commit

Permalink
fix(eslint)!: remove html related plugin
Browse files Browse the repository at this point in the history
release
  • Loading branch information
hemengke1997 committed Feb 5, 2024
1 parent ba34d8e commit 4d81717
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 20 deletions.
6 changes: 6 additions & 0 deletions packages/eslint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @minko-fe/eslint-config

## 2.1.0

### Minor Changes

- remove html related plugin

## 2.0.9

### Patch Changes
Expand Down
12 changes: 0 additions & 12 deletions packages/eslint/configs/html.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/eslint/configs/tailwindcss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as pluginTailwindcss3_11 from 'eslint-plugin-tailwindcss-3.11.0'
import * as pluginTailwindcss3_13_1 from 'eslint-plugin-tailwindcss-3.13.1'
import { getPackageInfoSync } from 'local-pkg'
import semver from 'semver'
import { GLOB_HTML, GLOB_JSX, GLOB_TSX, GLOB_VUE } from '../globs'
import { GLOB_JSX, GLOB_TSX, GLOB_VUE } from '../globs'
import { interopDefault } from '../utils'

const EslintTailwindVersionMap = new Map([
Expand All @@ -33,7 +33,7 @@ function resolveRightTwVersion() {

export const tailwindcss: FlatESLintConfigItem[] = [
{
files: [GLOB_VUE, GLOB_JSX, GLOB_TSX, GLOB_HTML],
files: [GLOB_VUE, GLOB_JSX, GLOB_TSX],
plugins: {
tailwindcss: resolveRightTwVersion(),
},
Expand Down
3 changes: 3 additions & 0 deletions packages/eslint/globs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ export const GLOB_EXCLUDE = /** @type {const} */ [
'**/.nuxt',
'**/.vercel',
'**/.changeset',
'**/.turbo',
'**/.cache',
'**/.tsup',
'**/.idea',
'**/.output',
'**/.vite-inspect',
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@minko-fe/eslint-config",
"version": "2.0.9",
"version": "2.1.0",
"description": "eslint-config",
"type": "module",
"repository": {
Expand All @@ -19,13 +19,14 @@
"import": "./dist/index.js"
},
"scripts": {
"dev": "tsup index.ts --watch",
"build": "tsup index.ts",
"lint": "eslint .",
"up": "pnpm up -i -L",
"release": "pnpm build & pnpm publish --no-git-checks"
},
"peerDependencies": {
"eslint": "^8.0.0"
"eslint": "^8.56.0"
},
"dependencies": {
"@minko-fe/prettier-config": "workspace:*",
Expand All @@ -37,7 +38,6 @@
"eslint-plugin-antfu": "^2.1.2",
"eslint-plugin-disable-autofix": "^4.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-i": "^2.29.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsonc": "^2.13.0",
Expand Down
3 changes: 0 additions & 3 deletions packages/eslint/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ export const configPrettier = interopDefault(_configPrettier)
// @ts-expect-error missing types
export * as parserTypeScript from '@typescript-eslint/parser'

// @ts-expect-error missing types
export * as pluginHtml from 'eslint-plugin-html'

// @ts-expect-error missing types
export * as pluginImport from 'eslint-plugin-import'
export * as pluginJsonc from 'eslint-plugin-jsonc'
Expand Down

0 comments on commit 4d81717

Please sign in to comment.