Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: htmlhint/HTMLHint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.12.0
Choose a base ref
...
head repository: htmlhint/HTMLHint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.12.1
Choose a head ref
  • 4 commits
  • 52 files changed
  • 3 contributors

Commits on May 13, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    32a5e6b View commit details

Commits on May 16, 2020

  1. chore: release 1.2.1 (#381)

    * feat: add rollup configuration (#367)
    
    * remove jshint and csslint
    
    * update nvm version
    
    * add rollup configuration
    
    * update dependencies
    
    * update travis
    
    * docs: add stale config (#368)
    
    * feat: add ci github action (#369)
    
    * chore(deps-dev): bump rollup from 2.9.1 to 2.10.0 (#370)
    
    Bumps [rollup](https://github.com/rollup/rollup) from 2.9.1 to 2.10.0.
    - [Release notes](https://github.com/rollup/rollup/releases)
    - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
    - [Commits](rollup/rollup@v2.9.1...v2.10.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    Co-authored-by: David Dias <thedaviddias@gmail.com>
    
    * chore(deps): [security] bump handlebars from 4.1.2 to 4.7.6 (#371)
    
    Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.7.6. **This update includes a security fix.**
    - [Release notes](https://github.com/wycats/handlebars.js/releases)
    - [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
    - [Commits](handlebars-lang/handlebars.js@v4.1.2...v4.7.6)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    Co-authored-by: David Dias <thedaviddias@gmail.com>
    
    * chores: add CI Github action (#375)
    
    * chore: add release action
    
    * add missing deps
    
    * fixes based on review
    
    * fix: add dist to gitignore file (#376)
    
    * update gitignore and remove dist
    
    * reverse order build / test
    
    * fix(build): use rollup --environment (make environment cross platform) (#377)
    
    makes the build work on windows
    
    * fix require hint (#379)
    
    * fix: mocha not testing all files (#380)
    
    * remove dist/htmlhint
    
    * fix: wrong named export
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    Co-authored-by: Nicolas HENRY <icewil@gmail.com>
    3 people authored May 16, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d21745b View commit details
  2. fix: revert to previous version

    Semantic released action didn't work, releasing manually.
    thedaviddias committed May 16, 2020

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    3b6aae5 View commit details
  3. Release 0.12.1

    thedaviddias committed May 16, 2020

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    6d8bf7d View commit details
Showing with 6,585 additions and 10,925 deletions.
  1. +11 −0 .github/stale.yml
  2. +42 −0 .github/workflows/ci.yml
  3. +34 −0 .github/workflows/release.yml
  4. +56 −10 .gitignore
  5. +0 −31 .jshintrc-browser
  6. +0 −22 .jshintrc-node
  7. +0 −6 .npmignore
  8. +1 −1 .nvmrc
  9. +0 −28 .travis.yml
  10. +1 −1 bin/htmlhint
  11. +0 −1,346 dist/htmlhint.js
  12. +6,334 −9,195 package-lock.json
  13. +47 −57 package.json
  14. +22 −0 rollup.config.js
  15. +6 −4 src/core.js
  16. +0 −32 src/rules/csslint.js
  17. +0 −2 src/rules/index.js
  18. +0 −46 src/rules/jshint.js
  19. +1 −1 test/{core-spec.js → core.spec.js}
  20. +1 −1 test/rules/alt-require.spec.js
  21. +1 −1 test/rules/attr-lowercase.spec.js
  22. +1 −1 test/rules/attr-no-duplication.spec.js
  23. +1 −1 test/rules/attr-sort.spec.js
  24. +1 −1 test/rules/attr-unsafe-chars.spec.js
  25. +1 −1 test/rules/attr-value-double-quotes.spec.js
  26. +1 −1 test/rules/attr-value-not-empty.spec.js
  27. +1 −1 test/rules/attr-value-single-quotes.spec.js
  28. +1 −1 test/rules/attr-whitespace.spec.js
  29. +0 −28 test/rules/csslint.spec.js
  30. +1 −1 test/rules/default.spec.js
  31. +1 −1 test/rules/doctype-first.spec.js
  32. +1 −1 test/rules/doctype-html5.spec.js
  33. +1 −1 test/rules/head-require.spec.js
  34. +1 −1 test/rules/head-script-disabled.spec.js
  35. +1 −1 test/rules/href-abs-or-rel.spec.js
  36. +1 −1 test/rules/id-class-ad-disabled.spec.js
  37. +1 −1 test/rules/id-class-value.spec.js
  38. +1 −1 test/rules/id-unique.spec.js
  39. +1 −1 test/rules/inline-script-disabled.spec.js
  40. +1 −1 test/rules/inline-style-disabled.spec.js
  41. +0 −56 test/rules/jshint.spec.js
  42. +1 −1 test/rules/script-disabled.spec.js
  43. +1 −1 test/rules/space-tab-mixed-disabled.spec.js
  44. +1 −1 test/rules/spec-char-escape.spec.js
  45. +1 −1 test/rules/src-not-empty.spec.js
  46. +1 −1 test/rules/style-disabled.spec.js
  47. +1 −1 test/rules/tag-pair.spec.js
  48. +1 −1 test/rules/tag-self-close.spec.js
  49. +1 −1 test/rules/tagname-lowercase.spec.js
  50. +1 −1 test/rules/tagname-specialchars.spec.js
  51. +1 −1 test/rules/title-require.spec.js
  52. +0 −29 webpack.config.js
11 changes: 11 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
daysUntilStale: 60
daysUntilClose: 14
exemptLabels:
- pinned
- security
staleLabel: resolution:wontfix
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
closeComment: false
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches:
- master
- develop
- 'feat/**'
- 'fix/**'
- 'perf/**'
- 'refactor/**'
pull_request:
branches:
- master
- develop

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10.x, 12.x, 14.x]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build --if-present
env:
CI: true

- name: Run tests
run: npm test
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node: [12.x]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build --if-present

- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
66 changes: 56 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
.DS_Store
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
test/unit/coverage
test/e2e/reports
selenium-debug.log
.tmp/
coverage
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Editor directories and files
.idea
@@ -16,3 +14,51 @@ coverage
*.ntvs*
*.njsproj
*.sln

# Generated files
dist/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like nyc and istanbul
.nyc_output
coverage

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

# Users Environment Variables
.lock-wscript

# macOS
*.DS_Store
.AppleDouble
.LSOverride

# Babel-compiled files
lib

# Ignore package manager lock files
package-lock.json
yarn.lock

test/unit/coverage
test/e2e/reports
31 changes: 0 additions & 31 deletions .jshintrc-browser

This file was deleted.

22 changes: 0 additions & 22 deletions .jshintrc-node

This file was deleted.

6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.11.3
v12.10.0
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion bin/htmlhint
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ var glob = require("glob");
var parseGlob = require('parse-glob');
var request = require('request');

var HTMLHint = require("../dist/htmlhint.js").default;
var HTMLHint = require("../dist/htmlhint.js").HTMLHint;
var formatter = require('./formatter');
var pkg = require('../package.json');

1,346 changes: 0 additions & 1,346 deletions dist/htmlhint.js

This file was deleted.

15,529 changes: 6,334 additions & 9,195 deletions package-lock.json

Large diffs are not rendered by default.

104 changes: 47 additions & 57 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "htmlhint",
"version": "0.12.0",
"version": "0.12.1",
"description": "The Static Code Analysis Tool for your HTML",
"repository": {
"type": "git",
@@ -24,10 +24,10 @@
"scripts": {
"commit": "npx git-cz",
"prettier": "prettier --write ./**/*.{js,json,md} --ignore-path ./.prettierignore",
"test": "mocha --recursive",
"build": "webpack",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
"test": "mocha --recursive \"./test/**/*.spec.js\"",
"build": "npm run build:min && npm run build:unmin",
"build:min": "rollup -c --environment NODE_ENV:production",
"build:unmin": "rollup -c --environment NODE_ENV:production --file dist/htmlhint.min.js"
},
"husky": {
"hooks": {
@@ -42,65 +42,55 @@
"config": "commitizen.config.js"
}
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
"@semantic-release/github"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": [
"package.json",
"package-lock.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]nn${nextRelease.notes}"
}
]
},
"dependencies": {
"async": "2.6.1",
"colors": "1.3.2",
"commander": "2.17.1",
"glob": "7.1.3",
"async": "3.2.0",
"colors": "1.4.0",
"commander": "5.1.0",
"esm": "3.2.25",
"glob": "7.1.6",
"parse-glob": "3.0.4",
"path-parse": "1.0.6",
"request": "2.88.0",
"strip-json-comments": "2.0.1",
"request": "2.88.2",
"strip-json-comments": "3.1.0",
"xml": "1.0.1"
},
"devDependencies": {
"@commitlint/cli": "8.1.0",
"@commitlint/config-conventional": "8.1.0",
"@commitlint/travis-cli": "8.1.0",
"commitizen": "4.0.3",
"commitlint": "8.1.0",
"cz-conventional-changelog": "3.0.2",
"cz-customizable": "6.2.0",
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@rollup/plugin-commonjs": "11.1.0",
"@rollup/plugin-node-resolve": "7.1.3",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/commit-analyzer": "8.0.1",
"@semantic-release/git": "9.0.0",
"@semantic-release/github": "7.0.5",
"@semantic-release/npm": "7.0.5",
"@semantic-release/release-notes-generator": "9.0.1",
"commitizen": "4.1.2",
"commitlint": "8.3.5",
"expect.js": "0.3.1",
"husky": "3.0.3",
"husky": "4.2.5",
"istanbul": "0.4.5",
"lint-staged": "9.2.1",
"mocha": "5.2.0",
"prettier": "^1.14.2",
"pretty-quick": "^1.6.0",
"semantic-release": "15.13.21",
"travis-deploy-once": "^5.0.7",
"webpack": "^4.29.5",
"webpack-cli": "^3.2.3"
"lint-staged": "10.2.2",
"mocha": "7.1.2",
"prettier": "2.0.5",
"pretty-quick": "2.0.1",
"rollup": "2.10.0",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-terser": "5.3.0",
"semantic-release": "17.0.7"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
]
},
"optionalDependencies": {
"csslint": "^1.0.5",
"jshint": "^2.9.6"
}
"files": [
"bin",
"dist"
]
}
22 changes: 22 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { terser } from "rollup-plugin-terser";

const config = {
input: './src/core.js',
output: {
file: 'dist/htmlhint.js',
format: 'umd',
name: 'HTMLHint'
},
plugins: [
commonjs(),
resolve()
],
};

if (process.env.NODE_ENV === 'production') {
config.plugins.push(terser());
}

export default config;
10 changes: 6 additions & 4 deletions src/core.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import HTMLParser from './htmlparser';
import Reporter from './reporter';
import * as HTMLRules from './rules';
class HTMLHint {
class HTMLHintCore {
constructor() {
this.rules = {};
this.defaultRuleset = {
@@ -142,9 +142,11 @@ function repeatStr(n, str) {
return new Array(n + 1).join(str || ' ');
}

const hint = new HTMLHint();
const HTMLHint = new HTMLHintCore();

Object.keys(HTMLRules).forEach(key => {
hint.addRule(HTMLRules[key]);
HTMLHint.addRule(HTMLRules[key]);
});
export default hint;

export { HTMLRules, Reporter, HTMLParser, HTMLHint };

32 changes: 0 additions & 32 deletions src/rules/csslint.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/rules/index.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ export { default as attrValueDoubleQuotes } from './attr-value-double-quotes';
export { default as attrValueNotEmpty } from './attr-value-not-empty';
export { default as attrValueSingleQuotes } from './attr-value-single-quotes';
export { default as attrWhitespace } from './attr-whitespace';
export { default as csslint } from './csslint';
export { default as doctypeFirst } from './doctype-first';
export { default as doctypeHTML5 } from './doctype-html5';
export { default as headScriptDisabled } from './head-script-disabled';
@@ -17,7 +16,6 @@ export { default as idClassValue } from './id-class-value';
export { default as idUnique } from './id-unique';
export { default as inlineScriptDisabled } from './inline-script-disabled';
export { default as inlineStyleDisabled } from './inline-style-disabled';
export { default as jshint } from './jshint';
export { default as scriptDisabled } from './script-disabled';
export { default as spaceTabMixedDisabled } from './space-tab-mixed-disabled';
export { default as specCharEscape } from './spec-char-escape';
46 changes: 0 additions & 46 deletions src/rules/jshint.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/core-spec.js → test/core.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../dist/htmlhint.js').default;
const HTMLHint = require('../dist/htmlhint.js').HTMLHint;

describe('Core', function() {
it('Set false to rule no effected should result in an error', function() {
2 changes: 1 addition & 1 deletion test/rules/alt-require.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'alt-require';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/attr-lowercase.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'attr-lowercase';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/attr-no-duplication.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'attr-no-duplication';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/attr-sort.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruleId = 'attr-sorted';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/attr-unsafe-chars.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'attr-unsafe-chars';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/attr-value-double-quotes.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'attr-value-double-quotes';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/attr-value-not-empty.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'attr-value-not-empty';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/attr-value-single-quotes.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'attr-value-single-quotes';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/attr-whitespace.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'attr-whitespace';
const ruleOptions = {};
28 changes: 0 additions & 28 deletions test/rules/csslint.spec.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/rules/default.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

describe('Rules: default', function() {
it('should result 3 errors', function() {
2 changes: 1 addition & 1 deletion test/rules/doctype-first.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'doctype-first';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/doctype-html5.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'doctype-html5';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/head-require.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'head-script-disabled';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/head-script-disabled.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'head-script-disabled';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/href-abs-or-rel.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'href-abs-or-rel';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/id-class-ad-disabled.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'id-class-ad-disabled';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/id-class-value.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var expect = require('expect.js');

var HTMLHint = require('../../dist/htmlhint.js').default;
var HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

var ruldId = 'id-class-value',
ruleOptionsUnderline = {},
2 changes: 1 addition & 1 deletion test/rules/id-unique.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'id-unique';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/inline-script-disabled.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'inline-script-disabled';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/inline-style-disabled.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'inline-style-disabled';
const ruleOptions = {};
56 changes: 0 additions & 56 deletions test/rules/jshint.spec.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/rules/script-disabled.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var expect = require('expect.js'),
HTMLHint = require('../../dist/htmlhint.js').default;
HTMLHint = require('../../dist/htmlhint.js').HTMLHint;
var ruldId = 'script-disabled',
ruleOptions = {};
ruleOptions[ruldId] = true;
2 changes: 1 addition & 1 deletion test/rules/space-tab-mixed-disabled.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'space-tab-mixed-disabled';
const ruleMixOptions = {};
2 changes: 1 addition & 1 deletion test/rules/spec-char-escape.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var expect = require("expect.js");

var HTMLHint = require('../../dist/htmlhint.js').default;
var HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

var ruldId = 'spec-char-escape',
ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/src-not-empty.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'src-not-empty';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/style-disabled.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'style-disabled';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/tag-pair.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'tag-pair';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/tag-self-close.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'tag-self-close';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/tagname-lowercase.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'tagname-lowercase';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/tagname-specialchars.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'tagname-specialchars';
const ruleOptions = {};
2 changes: 1 addition & 1 deletion test/rules/title-require.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('expect.js');

const HTMLHint = require('../../dist/htmlhint.js').default;
const HTMLHint = require('../../dist/htmlhint.js').HTMLHint;

const ruldId = 'title-require';
const ruleOptions = {};
29 changes: 0 additions & 29 deletions webpack.config.js

This file was deleted.