Giter Club home page Giter Club logo

eslint-vue-js-fixer's People

Stargazers

 avatar

Watchers

 avatar  avatar

eslint-vue-js-fixer's Issues

自动闭合标签修复出错?

qq 20170821142955
cuowu

我使用的muse框架,在执行fix的时候自动闭合标签会被全部更改为错误的嵌套,能不能设置fix的时候不去修复自动闭合标签

Invalid data, chunk must be a string or buffer, not object

$ vuefix -d src
net.js:692
    throw new TypeError(
    ^

TypeError: Invalid data, chunk must be a string or buffer, not object
    at WriteStream.Socket.write (net.js:692:11)
    at eslintfixer (/Users/willin/Desktop/vue-vuex-router-element-webpack-master/node_modules/eslint-vue-js-fixer/lib/eslint-vue-js-fixer.js:27:20)
    at vuefiles.forEach (/Users/willin/Desktop/vue-vuex-router-element-webpack-master/node_modules/eslint-vue-js-fixer/lib/eslint-vue-js-fixer.js:51:40)
    at Array.forEach (<anonymous>)
    at recursive (/Users/willin/Desktop/vue-vuex-router-element-webpack-master/node_modules/eslint-vue-js-fixer/lib/eslint-vue-js-fixer.js:37:14)
    at /Users/willin/Desktop/vue-vuex-router-element-webpack-master/node_modules/recursive-readdir/index.js:64:22
    at /Users/willin/Desktop/vue-vuex-router-element-webpack-master/node_modules/recursive-readdir/index.js:71:20
    at FSReqWrap.oncomplete (fs.js:153:5)
error Command failed with exit code 1.

.eslintrc:

module.exports = {
  parser: 'babel-eslint',
  env: {
    browser: true,
    commonjs: true,
    es6: true
  },
  extends: 'airbnb-base',
  plugins: [
    'vue',
    // 'vuefix',

    // 'html'
  ],
  // settings: {
  //   "html/html-extensions": [".html", ".vue"],  // consider .html and .we files as HTML
  // },
  rules: {
    // "vuefix/vuefix": [2, {"auto": true}],
    quotes: [2, 'single'],
    semi: 2,
    'max-len': [1, 120, 2],
    'arrow-body-style': [1, 'as-needed'],
    'comma-dangle': [2, 'never'],
    'no-debugger': 2,
    'no-console': 2,
    'object-curly-spacing': [2, 'always'],
    'no-undef': [1],
    'new-cap': 1,
    'no-param-reassign': 2,
    'global-require': 0,
    'no-mixed-operators': 0,
    "import/no-extraneous-dependencies": 0,
    "import/no-unresolved": 0,
    "import/extensions": 0
  }
};
extends: 'airbnb-base',

when standard no error.

@labnize

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.