-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: migrate to markuplint v3 (#103)
- Loading branch information
Showing
48 changed files
with
4,362 additions
and
6,853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'eslint-plugin-htm': minor | ||
'eslint-plugin-markup': minor | ||
'eslint-plugin-react-enhanced': minor | ||
'eslint-plugin-text': minor | ||
--- | ||
|
||
feat!: migrate to markuplint v3, use `type: module` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ jobs: | |
strategy: | ||
matrix: | ||
node: | ||
- 14 | ||
- 16 | ||
- 18 | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: 'CodeQL' | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
schedule: | ||
- cron: '40 13 * * 2' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [javascript] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
queries: +security-and-quality | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: '/language:${{ matrix.language }}' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
coverage | ||
dist | ||
/auto-imports.d.ts | ||
/packages/**/test/fixtures |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,12 @@ LICENSE | |
*.json | ||
*.lock | ||
*.log | ||
*.mts | ||
*.pug | ||
*.snap | ||
*.ts | ||
*.tsbuildinfo | ||
*.tsx | ||
*.txt | ||
*.yaml | ||
*.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* eslint-disable */ | ||
/* prettier-ignore */ | ||
// @ts-nocheck | ||
// Generated by unplugin-auto-import | ||
export {} | ||
declare global { | ||
const afterAll: typeof import('vitest')['afterAll'] | ||
const afterEach: typeof import('vitest')['afterEach'] | ||
const assert: typeof import('vitest')['assert'] | ||
const beforeAll: typeof import('vitest')['beforeAll'] | ||
const beforeEach: typeof import('vitest')['beforeEach'] | ||
const chai: typeof import('vitest')['chai'] | ||
const describe: typeof import('vitest')['describe'] | ||
const expect: typeof import('vitest')['expect'] | ||
const it: typeof import('vitest')['it'] | ||
const suite: typeof import('vitest')['suite'] | ||
const test: typeof import('vitest')['test'] | ||
const vi: typeof import('vitest')['vi'] | ||
const vitest: typeof import('vitest')['vitest'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
http-equiv="X-UA-Compatible" | ||
content="IE=edge" | ||
/> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0" | ||
/> | ||
<title>Vitery</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script | ||
type="module" | ||
src="./docs/index.tsx" | ||
></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "@unts/eslint", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"description": "Incredible ESLint plugins, make ESLint greater", | ||
"repository": "git+https://github.com/un-ts/eslint.git", | ||
"homepage": "https://eslint-plugins.vercel.app", | ||
|
@@ -13,60 +14,60 @@ | |
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "run-p build:*", | ||
"build:r": "r -f es2015", | ||
"build:r": "r -f cjs", | ||
"build:ts": "tsc -b", | ||
"clean": "rimraf coverage dist packages/*/{lib,*.tsbuildinfo}", | ||
"dev": "yarn docs:dev", | ||
"docs:build": "w -e docs -p --publicPath /", | ||
"docs:dev": "w -e docs --publicPath /", | ||
"docs:preview": "sirv dist", | ||
"docs:build": "vite build", | ||
"docs:dev": "vite dev", | ||
"docs:preview": "vite serve", | ||
"lint": "run-p lint:*", | ||
"lint:es": "eslint . --cache -f friendly --max-warnings 10", | ||
"lint:style": "stylelint . --cache", | ||
"lint:ts": "tsc -p tsconfig.base.json --noEmit", | ||
"prepare": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0", | ||
"release": "changeset publish", | ||
"serve": "yarn docs:preview", | ||
"test": "jest", | ||
"test": "vitest run --coverage", | ||
"typecov": "type-coverage", | ||
"vercel-build": "yarn docs:build" | ||
}, | ||
"devDependencies": { | ||
"@1stg/app-config": "^7.2.1", | ||
"@1stg/lib-config": "^10.2.1", | ||
"@1stg/app-config": "^8.0.1", | ||
"@1stg/lib-config": "^11.0.1", | ||
"@changesets/changelog-github": "^0.4.8", | ||
"@changesets/cli": "^2.24.4", | ||
"@markuplint/rule-textlint": "^2.5.11", | ||
"@pkgr/webpack": "^3.4.0", | ||
"@pkgr/webpack-mdx": "^2.2.0", | ||
"@textlint/textlint-plugin-markdown": "^12.2.3", | ||
"@textlint/textlint-plugin-text": "^12.2.2", | ||
"@types/eslint": "^8.4.6", | ||
"@changesets/cli": "^2.26.1", | ||
"@markuplint/rule-textlint": "^3.7.0", | ||
"@mdx-js/rollup": "^2.3.0", | ||
"@textlint/textlint-plugin-markdown": "^13.3.2", | ||
"@textlint/textlint-plugin-text": "^13.3.2", | ||
"@types/eslint": "^8.37.0", | ||
"@types/htmlhint": "^1.1.2", | ||
"@types/jest": "^29.0.0", | ||
"@types/node": "^18.7.15", | ||
"@types/react": "^18.0.27", | ||
"@types/react-dom": "^18.0.10", | ||
"@types/web": "^0.0.72", | ||
"@types/node": "^18.15.11", | ||
"@types/react": "^18.0.33", | ||
"@types/react-dom": "^18.0.11", | ||
"@types/web": "^0.0.99", | ||
"@vitejs/plugin-react-swc": "^3.3.0", | ||
"@vitest/coverage-istanbul": "^0.29.8", | ||
"dictionary-en": "^3.2.0", | ||
"github-markdown-css": "^5.1.0", | ||
"jest": "^29.0.2", | ||
"github-markdown-css": "^5.2.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.3.0", | ||
"react-router-dom": "^6.10.0", | ||
"retext-emoji": "^8.1.0", | ||
"retext-english": "^4.1.0", | ||
"retext-spell": "^5.3.0", | ||
"sirv-cli": "^2.0.2", | ||
"textlint": "^12.2.1", | ||
"textlint-rule-max-comma": "^2.0.2", | ||
"sass": "^1.61.0", | ||
"textlint": "^13.3.2", | ||
"textlint-rule-max-comma": "^3.0.1", | ||
"textlint-rule-no-zero-width-spaces": "^1.0.1", | ||
"textlint-rule-spellchecker": "^2.2.1", | ||
"ts-jest": "^28.0.8", | ||
"ts-node": "^10.9.1", | ||
"type-coverage": "^2.22.0", | ||
"typescript": "^4.8.2", | ||
"yarn-deduplicate": "^6.0.0" | ||
"type-coverage": "^2.25.0", | ||
"typescript": "^5.0.4", | ||
"unplugin-auto-import": "^0.15.2", | ||
"vite": "^4.2.1", | ||
"vitest": "^0.29.8", | ||
"yarn-deduplicate": "^6.0.1" | ||
}, | ||
"commitlint": { | ||
"extends": "@1stg" | ||
|
@@ -84,18 +85,12 @@ | |
"**/lib", | ||
"**/test/fixtures", | ||
"**/CHANGELOG.md", | ||
"/auto-imports.d.ts", | ||
"!/.github", | ||
"!/.*.js" | ||
], | ||
"jest": { | ||
"preset": "ts-jest", | ||
"collectCoverage": true, | ||
"moduleNameMapper": { | ||
"eslint-plugin-(.*)": "<rootDir>/packages/$1/src" | ||
}, | ||
"modulePathIgnorePatterns": [ | ||
"<rootDir>/package.json" | ||
] | ||
"markuplint": { | ||
"extends": "@1stg/markuplint-config" | ||
}, | ||
"prettier": "@1stg/prettier-config", | ||
"remarkConfig": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
{ | ||
"name": "eslint-plugin-htm", | ||
"version": "0.5.2", | ||
"type": "module", | ||
"description": "An incredible ESLint plugin for HTML based on HTMLHint", | ||
"repository": "git+https://github.com/un-ts/eslint.git", | ||
"homepage": "https://github.com/un-ts/eslint/blob/main/packages/htm", | ||
"author": "JounQin (https://www.1stG.me) <[email protected]>", | ||
"funding": "https://opencollective.com/unts", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=10" | ||
"node": "^14.18.0 || >=16.0.0" | ||
}, | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.es2015.mjs", | ||
"main": "./lib/index.cjs", | ||
"module": "./lib/index.js", | ||
"exports": { | ||
"types": "./lib/index.d.ts", | ||
"import": "./lib/index.es2015.mjs", | ||
"require": "./lib/index.js" | ||
"import": "./lib/index.js", | ||
"require": "./lib/index.cjs" | ||
}, | ||
"es2015": "./lib/index.es2015.mjs", | ||
"es2015": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"files": [ | ||
"lib" | ||
|
@@ -40,7 +41,7 @@ | |
"dependencies": { | ||
"eslint-plugin-utils": "^0.3.2", | ||
"htmlhint": "^1.1.4", | ||
"tslib": "^2.4.0" | ||
"tslib": "^2.5.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './html' | ||
export * from './html.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
{ | ||
"name": "eslint-plugin-markup", | ||
"version": "0.10.2", | ||
"type": "module", | ||
"description": "An incredible ESLint plugin for all markup languages based on markuplint", | ||
"repository": "git+https://github.com/un-ts/eslint.git", | ||
"homepage": "https://github.com/un-ts/eslint/blob/main/packages/markup", | ||
"author": "JounQin (https://www.1stG.me) <[email protected]>", | ||
"funding": "https://opencollective.com/unts", | ||
"license": "MIT", | ||
"engines": { | ||
"node": "^12.20.0 || ^14.18.0 || >=16.0.0" | ||
"node": "^14.18.0 || >=16.0.0" | ||
}, | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.es2015.mjs", | ||
"main": "./lib/index.cjs", | ||
"module": "./lib/index.js", | ||
"exports": { | ||
"types": "./lib/index.d.ts", | ||
"import": "./lib/index.es2015.mjs", | ||
"require": "./lib/index.js" | ||
"import": "./lib/index.js", | ||
"require": "./lib/index.cjs" | ||
}, | ||
"es2015": "./lib/index.es2015.mjs", | ||
"es2015": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"files": [ | ||
"lib" | ||
|
@@ -38,11 +39,11 @@ | |
"eslint": ">=5.0.0" | ||
}, | ||
"dependencies": { | ||
"cosmiconfig": "^7.0.1", | ||
"cosmiconfig": "^8.1.3", | ||
"eslint-plugin-utils": "^0.3.2", | ||
"markuplint": "^2.10.1", | ||
"synckit": "^0.8.4", | ||
"tslib": "^2.4.0" | ||
"markuplint": "^3.7.0", | ||
"synckit": "^0.8.5", | ||
"tslib": "^2.5.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './markup' | ||
export * from './markup.js' |
Oops, something went wrong.