Commits (18)
......@@ -30,6 +30,8 @@ Build:
- dist/
script:
- npm run build
- npm pack
- npx npm-pkg-lint
pages:
stage: build
......
# html-validate changelog
### [4.0.2](https://gitlab.com/html-validate/html-validate/compare/v4.0.1...v4.0.2) (2020-11-19)
### Bug Fixes
- **deps:** replace dependency on `eslint` with `@html-validate/stylish` ([2d1bc81](https://gitlab.com/html-validate/html-validate/commit/2d1bc819bd241294db55fc28dd7305ee46d9ad3f))
### [4.0.1](https://gitlab.com/html-validate/html-validate/compare/v4.0.0...v4.0.1) (2020-11-09)
### Bug Fixes
......
......@@ -25,7 +25,7 @@ Create `.htmlvalidate.json`:
```js
{
"extends": [
"htmlvalidate:recommended"
"html-validate:recommended"
],
"rules": {
......
This diff is collapsed.
{
"name": "html-validate",
"version": "4.0.1",
"version": "4.0.2",
"description": "html linter",
"keywords": [
"html",
......@@ -31,11 +31,11 @@
"elements",
"jest.{js,d.ts}",
"test-utils.{js,d.ts}",
"!*.snap",
"!*.spec.d.ts",
"!*.spec.js",
"!*.spec.ts",
"!__mocks__",
"!**/*.snap",
"!**/*.spec.d.ts",
"!**/*.spec.js",
"!**/*.spec.ts",
"!**/__mocks__",
"!dist/rules/**/*.d.ts"
],
"scripts": {
......@@ -81,12 +81,12 @@
},
"dependencies": {
"@babel/code-frame": "^7.10.4",
"@html-validate/stylish": "1.0.0",
"@sidvind/better-ajv-errors": "^0.6.10",
"acorn-walk": "^8.0.0",
"ajv": "^6.12.6",
"chalk": "^4.0.0",
"deepmerge": "^4.2.2",
"eslint": "^7.11.0",
"espree": "^7.3.0",
"glob": "^7.1.6",
"inquirer": "^7.3.3",
......@@ -98,10 +98,10 @@
"@babel/preset-env": "7.12.1",
"@commitlint/cli": "11.0.0",
"@html-validate/commitlint-config": "1.1.1",
"@html-validate/eslint-config": "2.1.0",
"@html-validate/jest-config": "1.0.33",
"@html-validate/eslint-config": "2.1.1",
"@html-validate/jest-config": "1.0.34",
"@html-validate/prettier-config": "1.1.0",
"@html-validate/semantic-release-config": "1.1.0",
"@html-validate/semantic-release-config": "1.1.1",
"@lodder/grunt-postcss": "3.0.0",
"@types/babel__code-frame": "7.0.2",
"@types/estree": "0.0.45",
......@@ -109,9 +109,9 @@
"@types/inquirer": "7.3.1",
"@types/jest": "26.0.15",
"@types/json-merge-patch": "0.0.5",
"@types/minimist": "1.2.0",
"@types/minimist": "1.2.1",
"@types/node": "11.15.35",
"autoprefixer": "10.0.1",
"autoprefixer": "10.0.2",
"babelify": "10.0.0",
"bootstrap-sass": "3.4.1",
"canonical-path": "1.0.0",
......@@ -119,6 +119,7 @@
"dgeni": "0.4.12",
"dgeni-front-matter": "2.0.3",
"dgeni-packages": "0.28.4",
"eslint": "7.13.0",
"eslint-plugin-array-func": "3.1.7",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-security": "1.4.0",
......@@ -138,13 +139,14 @@
"jquery": "3.5.1",
"lint-staged": "10.5.1",
"load-grunt-tasks": "5.1.0",
"marked": "1.2.3",
"marked": "1.2.4",
"minimatch": "3.0.4",
"postcss": "8.1.6",
"npm-pkg-lint": "1.2.0",
"postcss": "8.1.7",
"prettier": "2.1.2",
"pretty-format": "26.6.2",
"sass": "1.29.0",
"semantic-release": "17.2.2",
"semantic-release": "17.2.3",
"serve-static": "1.14.1",
"stringmap": "0.2.2",
"strip-ansi": "6.0.0",
......
import stylishImpl from "@html-validate/stylish";
import { Result } from "../reporter";
import { Formatter } from "./formatter";
const stylish = require("eslint/lib/cli-engine/formatters/stylish");
function stylish(results: Result[]): string {
return stylishImpl(
results.map((it) => ({
...it,
fixableErrorCount: 0,
fixableWarningCount: 0,
}))
);
}
const formatter: Formatter = stylish;
export default formatter;
{
"compilerOptions": {
"alwaysStrict": true,
"baseUrl": "./src",
"rootDir": "./src",
"declaration": true,
"esModuleInterop": true,
"lib": ["es2017"],
......