-
-
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: upgrade htmlhint 1.0 and markuplint 2.0
- Loading branch information
Showing
16 changed files
with
3,688 additions
and
4,077 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,5 @@ | ||
--- | ||
'eslint-plugin-htm': minor | ||
--- | ||
|
||
feat: upgrade htmlhint 1.0 |
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,5 @@ | ||
--- | ||
'eslint-plugin-utils': minor | ||
--- | ||
|
||
feat: update entry files extensions |
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,5 @@ | ||
--- | ||
'eslint-plugin-markup': minor | ||
--- | ||
|
||
feat: upgrade markuplint 2.0 |
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 |
---|---|---|
@@ -1,16 +1,13 @@ | ||
import { registerJsonMessageHandler } from 'eslint-plugin-utils' | ||
import { LintResult } from 'htmlhint' | ||
import { Hint } from 'htmlhint/types' | ||
|
||
export * from './parser' | ||
export * as configs from './configs' | ||
export * from './parser' | ||
export * as rules from './rules' | ||
|
||
registerJsonMessageHandler( | ||
'htm/html', | ||
({ evidence, rule, message }: LintResult) => ({ | ||
ruleId: `htm/${rule.id}`, | ||
message: `${message} | ||
registerJsonMessageHandler('htm/html', ({ evidence, rule, message }: Hint) => ({ | ||
ruleId: `htm/${rule.id}`, | ||
message: `${message} | ||
evidence: ${evidence} | ||
reference: ${rule.link}`, | ||
}), | ||
) | ||
reference: ${rule.link ?? '-'}`, | ||
})) |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import { exec } from 'markuplint' | ||
import { Target } from '@markuplint/file-resolver' | ||
import { mlTestFile } from 'markuplint' | ||
import { runAsWorker } from 'synckit' | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
runAsWorker(async (options: Parameters<typeof exec>[0]) => { | ||
const results = await exec(options) | ||
return results.map(({ results, fixedCode }) => ({ | ||
results, | ||
fixedCode, | ||
})) | ||
}) | ||
runAsWorker((target: Target, fix?: boolean) => | ||
mlTestFile(target, undefined, undefined, undefined, fix), | ||
) |
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
Oops, something went wrong.