How to use the vue-eslint-parser.AST function in vue-eslint-parser

To help you get started, we’ve selected a few vue-eslint-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vuejs / eslint-plugin-vue / lib / rules / order-in-components.js View on Github external
/**
 * @fileoverview Keep order of properties in components
 * @author Michał Sajnóg
 */
'use strict'

const utils = require('../utils')
const traverseNodes = require('vue-eslint-parser').AST.traverseNodes

const defaultOrder = [
  'el',
  'name',
  'parent',
  'functional',
  ['delimiters', 'comments'],
  ['components', 'directives', 'filters'],
  'extends',
  'mixins',
  'inheritAttrs',
  'model',
  ['props', 'propsData'],
  'fetch',
  'asyncData',
  'data',
github vuejs / eslint-plugin-vue / lib / utils / index.js View on Github external
isSvgElementNode (node) {
    assert(node && node.type === 'VElement')

    return node.namespace === vueEslintParser.AST.NS.SVG
  },
github eschirtz / Computer-Science-Series / node_modules / eslint-plugin-vue / lib / utils / index.js View on Github external
isSvgElementNode (node) {
    assert(node && node.type === 'VElement')

    return node.namespace === vueEslintParser.AST.NS.SVG
  },
github vuejs / eslint-plugin-vue / lib / utils / index.js View on Github external
isHtmlElementNode (node) {
    assert(node && node.type === 'VElement')

    return node.namespace === vueEslintParser.AST.NS.HTML
  },
github eschirtz / Computer-Science-Series / node_modules / eslint-plugin-vue / lib / utils / index.js View on Github external
isHtmlElementNode (node) {
    assert(node && node.type === 'VElement')

    return node.namespace === vueEslintParser.AST.NS.HTML
  },

vue-eslint-parser

The ESLint custom parser for `.vue` files.

MIT
Latest version published 5 months ago

Package Health Score

84 / 100
Full package analysis