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: BenoitZugmeyer/eslint-plugin-html
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.0
Choose a base ref
...
head repository: BenoitZugmeyer/eslint-plugin-html
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.1
Choose a head ref
  • 5 commits
  • 4 files changed
  • 2 contributors

Commits on Feb 1, 2019

  1. Replace undocumented rules.define() with defineRule()

    Christian Kaisermann committed Feb 1, 2019
    Copy the full SHA
    2f3a2b8 View commit details

Commits on Feb 2, 2019

  1. Merge pull request #112 from kaisermann/fix-define-rule

    Replace undocumented rules.define() with defineRule()
    BenoitZugmeyer authored Feb 2, 2019
    Copy the full SHA
    43e31a8 View commit details
  2. Copy the full SHA
    edbd5c2 View commit details
  3. Copy the full SHA
    83dcebc View commit details
  4. 5.0.1

    BenoitZugmeyer committed Feb 2, 2019
    Copy the full SHA
    001c59c View commit details
Showing with 1,269 additions and 2,132 deletions.
  1. +5 −1 CHANGELOG.md
  2. +1,259 −2,126 npm-shrinkwrap.json
  3. +4 −4 package.json
  4. +1 −1 src/index.js
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
2018-11-11 v5
2019-02-02 v5.0.1
* Fix compatibility with ESLint 5.13.0
* Update dependencies

2018-11-11 v5.0.0
* **Breaking: drop support of Node.js 4**
* **Breaking: don't lint .vue files by default**
* Update dependencies
3,385 changes: 1,259 additions & 2,126 deletions npm-shrinkwrap.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-html",
"version": "5.0.0",
"version": "5.0.1",
"description": "A ESLint plugin to lint and fix inline scripts contained in HTML files.",
"license": "ISC",
"repository": {
@@ -20,10 +20,10 @@
"htmlparser2": "^3.10.0"
},
"devDependencies": {
"eslint": "^5.9.0",
"eslint": "^5.13.0",
"eslint-config-benoitz-prettier": "^1.1.0",
"jest": "^23.6.0",
"prettier": "^1.15.2"
"jest": "^24.0.0",
"prettier": "^1.16.3"
},
"scripts": {
"validate": "npm run lint && npm run test",
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -164,7 +164,7 @@ function patch(Linter) {
// Save code parts parsed source code so we don't have to parse it twice
const sourceCodes = new WeakMap()
const verifyCodePart = (codePart, { prepare, ignoreRules } = {}) => {
this.rules.define(PREPARE_RULE_NAME, context => {
this.defineRule(PREPARE_RULE_NAME, context => {
sourceCodes.set(codePart, context.getSourceCode())
return {
Program() {