Socket
Socket
Sign inDemoInstall

vue-eslint-parser

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-eslint-parser - npm Package Compare versions

Comparing version 1.1.0-7 to 1.1.0-8

index.d.ts

83

package.json
{
"name": "vue-eslint-parser",
"version": "1.1.0-7",
"version": "1.1.0-8",
"description": "The ESLint custom parser for `.vue` files.",

@@ -10,17 +10,8 @@ "engines": {

"files": [
"lib"
"index.d.ts",
"index.js",
"index.js.map"
],
"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"
"peerDependencies": {
"eslint": ">=3.9.0"
},

@@ -30,26 +21,56 @@ "dependencies": {

"eslint-scope": "^3.7.1",
"espree": ">=3.3.2",
"lodash.sortedindex": "^4.1.0",
"lodash.sortedindexby": "^4.6.0",
"parse5": "^3.0.0"
"espree": "^3.3.2",
"lodash": "^4.17.4"
},
"devDependencies": {
"@types/node": "^6.0.52",
"@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",
"babel-eslint": "^7.1.1",
"babel-preset-power-assert": "^1.0.0",
"babel-register": "^6.18.0",
"chokidar": "^1.7.0",
"codecov": "^2.1.0",
"eslint": "^3.19.0",
"eslint-config-mysticatea": "^10.0.0",
"fs-extra": "^2.1.2",
"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",
"mocha": "^3.2.0",
"nyc": "^10.0.0",
"npm-run-all": "^4.0.2",
"nyc": "^11.1.0",
"opener": "^1.4.2",
"power-assert": "^1.4.2",
"rimraf": "^2.5.4",
"typescript": "~2.2.1",
"typescript-eslint-parser": "^2.1.0"
"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"
},
"peerDependencies": {
"eslint": ">=3.9.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"
},

@@ -56,0 +77,0 @@ "repository": {

@@ -11,6 +11,11 @@ # vue-eslint-parser

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.
## ⤴️ Motivation
## :cd: Installation
- **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.
## 💿 Installation
```bash

@@ -22,5 +27,5 @@ $ npm install --save-dev eslint vue-eslint-parser

## :book: Usage
## 📖 Usage
1. Write `parser` option in your `.eslintrc.*` file.
1. Write `parser` option into your `.eslintrc.*` file.
2. Use glob patterns or `--ext .vue` CLI option.

@@ -35,3 +40,3 @@

```bash
```console
$ eslint "src/**/*.{js,vue}"

@@ -42,3 +47,3 @@ # or

## :wrench: Options
## 🔧 Options

@@ -88,5 +93,5 @@ `parserOptions` has the same properties as what [espree](https://github.com/eslint/espree#usage), the default parser of ESLint, is supporting.

## :book: Usage for custom rules / plugins
## 🎇 Usage for custom rules / plugins
`vue-eslint-parser` provides `parserServices` to traverse `<template>`.
This parser provides `parserServices` to traverse `<template>`.

@@ -97,3 +102,3 @@ The spec of `<template>` AST is [here](./docs/ast.md).

## :warning: Known Limitations
## ⚠️ Known Limitations

@@ -111,7 +116,7 @@ Some rules make warnings due to the outside of `<script>` tags.

## :newspaper: Changelog
## 📰 Changelog
- [GitHub Releases](https://github.com/mysticatea/vue-eslint-parser/releases)
## :muscle: Contributing
## 🍻 Contributing

@@ -122,10 +127,15 @@ 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 coverage result of `npm test` command.
- `npm run clean` removes the temporary files which are created by `npm test` and `npm run build`.
- `npm run lint` runs ESLint.
- `npm run setup` setups submodules to develop.
- `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.
- `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.

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc