vue-eslint-parser
Advanced tools
Comparing version 1.1.0-8 to 1.1.0-9
{ | ||
"name": "vue-eslint-parser", | ||
"version": "1.1.0-8", | ||
"version": "1.1.0-9", | ||
"description": "The ESLint custom parser for `.vue` files.", | ||
@@ -10,8 +10,17 @@ "engines": { | ||
"files": [ | ||
"index.d.ts", | ||
"index.js", | ||
"index.js.map" | ||
"lib" | ||
], | ||
"peerDependencies": { | ||
"eslint": ">=3.9.0" | ||
"scripts": { | ||
"_mocha": "_mocha \"test/*.js\" --compilers js:babel-register --reporter progress --timeout 30000", | ||
"clean": "rimraf .nyc_output coverage", | ||
"coverage": "nyc report --reporter lcov && opener ./coverage/lcov-report/index.html", | ||
"lint": "eslint index.js lib \"test/*.js\"", | ||
"postversion": "git push && git push --tags", | ||
"pretest": "npm run lint", | ||
"preversion": "npm test", | ||
"setup": "git submodule update --init && cd test/fixtures/eslint && npm install", | ||
"test": "nyc npm run _mocha", | ||
"update-fixtures": "node test/tools/update-template-ast.js", | ||
"watch": "npm run _mocha -- --growl --watch", | ||
"codecov": "nyc report --reporter lcovonly && codecov" | ||
}, | ||
@@ -21,56 +30,26 @@ "dependencies": { | ||
"eslint-scope": "^3.7.1", | ||
"espree": "^3.3.2", | ||
"lodash": "^4.17.4" | ||
"espree": ">=3.3.2", | ||
"lodash.sortedindex": "^4.1.0", | ||
"lodash.sortedindexby": "^4.6.0", | ||
"parse5": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/debug": "0.0.29", | ||
"@types/estree": "0.0.35", | ||
"@types/lodash": "^4.14.71", | ||
"@types/mocha": "^2.2.41", | ||
"@types/node": "^6.0.85", | ||
"@types/node": "^6.0.52", | ||
"babel-eslint": "^7.1.1", | ||
"chokidar": "^1.7.0", | ||
"babel-preset-power-assert": "^1.0.0", | ||
"babel-register": "^6.18.0", | ||
"codecov": "^2.1.0", | ||
"cross-spawn": "^5.1.0", | ||
"dts-bundle": "^0.7.3", | ||
"eslint": "^4.3.0", | ||
"eslint-config-mysticatea": "^11.0.0", | ||
"fs-extra": "^4.0.0", | ||
"eslint": "^3.19.0", | ||
"eslint-config-mysticatea": "^10.0.0", | ||
"fs-extra": "^2.1.2", | ||
"mocha": "^3.2.0", | ||
"npm-run-all": "^4.0.2", | ||
"nyc": "^11.1.0", | ||
"nyc": "^10.0.0", | ||
"opener": "^1.4.2", | ||
"power-assert": "^1.4.2", | ||
"rimraf": "^2.5.4", | ||
"rollup": "^0.45.2", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-watch": "^4.3.1", | ||
"typescript": "~2.3.4", | ||
"typescript-eslint-parser": "^4.0.0", | ||
"wait-on": "^2.0.2", | ||
"warun": "^1.0.0" | ||
"typescript": "~2.2.1", | ||
"typescript-eslint-parser": "^2.1.0" | ||
}, | ||
"scripts": { | ||
"_mocha": "_mocha \"test/*.js\" --reporter dot --timeout 5000", | ||
"prebuild": "npm run -s clean", | ||
"build": "tsc && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts", | ||
"clean": "rimraf .nyc_output .temp coverage index.*", | ||
"codecov": "nyc report --reporter lcovonly && codecov", | ||
"coverage": "nyc report --reporter lcov && opener ./coverage/lcov-report/index.html", | ||
"lint": "eslint lib test", | ||
"setup": "git submodule update --init && cd test/fixtures/eslint && npm install", | ||
"pretest": "run-s build lint", | ||
"test": "nyc npm run _mocha", | ||
"preupdate-fixtures": "npm run -s build", | ||
"update-fixtures": "node test/tools/update-fixtures-ast.js", | ||
"preversion": "npm test", | ||
"version": "npm run -s build", | ||
"postversion": "git push && git push --tags", | ||
"prewatch": "npm run -s clean", | ||
"watch": "run-p watch:*", | ||
"watch:tsc": "tsc --watch", | ||
"watch:rollup": "wait-on .temp/index.js && rollup -c -o index.js --watch", | ||
"watch:test": "wait-on index.js && warun index.js \"test/*.js\" \"test/fixtures/ast/*/*.json\" \"test/fixtures/*\" --no-initial -- nyc -r lcov npm run -s _mocha", | ||
"watch:update-ast": "wait-on index.js && warun index.js \"test/fixtures/ast/*/*.vue\" -- node test/tools/update-fixtures-ast.js", | ||
"watch:coverage-report": "wait-on coverage/lcov-report/index.html && opener coverage/lcov-report/index.html" | ||
"peerDependencies": { | ||
"eslint": ">=3.9.0" | ||
}, | ||
@@ -77,0 +56,0 @@ "repository": { |
@@ -11,11 +11,6 @@ # vue-eslint-parser | ||
## ⤴️ Motivation | ||
ESLint supports autofix on custom parsers but does not support autofix on plugins which have processors ([eslint/eslint#7510](https://github.com/eslint/eslint/issues/7510)). The motivation of this custom parser is that it supports autofix on `.vue` files. | ||
- **This parser allows us to lint the `<template>` of `.vue` files.** | ||
We can make mistakes easily on `<template>` if we use complex directives and expressions in the template. This parser and the rules of [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) would catch some of the mistakes. | ||
- **This parser allows us to fix our mistakes automatically.** | ||
ESLint supports autofix on custom parsers but does not support autofix on plugins which have processors ([eslint/eslint#7510](https://github.com/eslint/eslint/issues/7510)). This parser supports autofix on `.vue` files. | ||
## :cd: Installation | ||
## 💿 Installation | ||
```bash | ||
@@ -27,5 +22,5 @@ $ npm install --save-dev eslint vue-eslint-parser | ||
## 📖 Usage | ||
## :book: Usage | ||
1. Write `parser` option into your `.eslintrc.*` file. | ||
1. Write `parser` option in your `.eslintrc.*` file. | ||
2. Use glob patterns or `--ext .vue` CLI option. | ||
@@ -40,3 +35,3 @@ | ||
```console | ||
```bash | ||
$ eslint "src/**/*.{js,vue}" | ||
@@ -47,3 +42,3 @@ # or | ||
## 🔧 Options | ||
## :wrench: Options | ||
@@ -93,5 +88,5 @@ `parserOptions` has the same properties as what [espree](https://github.com/eslint/espree#usage), the default parser of ESLint, is supporting. | ||
## 🎇 Usage for custom rules / plugins | ||
## :book: Usage for custom rules / plugins | ||
This parser provides `parserServices` to traverse `<template>`. | ||
`vue-eslint-parser` provides `parserServices` to traverse `<template>`. | ||
@@ -102,3 +97,3 @@ The spec of `<template>` AST is [here](./docs/ast.md). | ||
## ⚠️ Known Limitations | ||
## :warning: Known Limitations | ||
@@ -116,7 +111,7 @@ Some rules make warnings due to the outside of `<script>` tags. | ||
## 📰 Changelog | ||
## :newspaper: Changelog | ||
- [GitHub Releases](https://github.com/mysticatea/vue-eslint-parser/releases) | ||
## 🍻 Contributing | ||
## :muscle: Contributing | ||
@@ -127,15 +122,10 @@ Welcome contributing! | ||
If you want to write code, please execute `npm install && npm run setup` after you cloned this repository. | ||
The `npm install` command installs dependencies. | ||
The `npm run setup` command initializes ESLint as git submodules for tests. | ||
### Development Tools | ||
- `npm test` runs tests and measures coverage. | ||
- `npm run build` compiles TypeScript source code to `index.js`, `index.js.map`, and `index.d.ts`. | ||
- `npm run coverage` shows the coverage result of `npm test` command with the default browser. | ||
- `npm run clean` removes the temporary files which are created by `npm test` and `npm run build`. | ||
- `npm run clean` removes the coverage result of `npm test` command. | ||
- `npm run lint` runs ESLint. | ||
- `npm run setup` setups submodules to develop. | ||
- `npm run update-fixtures` updates files in `test/fixtures/ast` directory based on `test/fixtures/ast/*/source.vue` files. | ||
- `npm run watch` runs `build`, `update-fixtures`, and tests with `--watch` option. | ||
- `npm run update-fixtures` updates files in `test/fixtures/template-ast` directory based on `*.source.vue` files. | ||
- `npm run watch` runs tests with `--watch` option. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
15
14
96071
7
1554
124
+ Addedlodash.sortedindex@^4.1.0
+ Addedlodash.sortedindexby@^4.6.0
+ Addedparse5@^3.0.0
+ Added@types/node@22.9.0(transitive)
+ Addedlodash.sortedindex@4.1.0(transitive)
+ Addedlodash.sortedindexby@4.6.0(transitive)
+ Addedparse5@3.0.3(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removedlodash@^4.17.4
- Removedacorn@3.3.05.7.4(transitive)
- Removedacorn-jsx@3.0.1(transitive)
- Removedespree@3.5.4(transitive)
- Removedlodash@4.17.21(transitive)
Updatedespree@>=3.3.2