question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not support `--fix`

See original GitHub issue
❯ echo "const a = 'single+semi';" > foobar.js
❯ ./node_modules/.bin/eslint --fix foobar.js

  1:7  error  'a' is assigned a value but never used  no-unused-vars

✖ 1 problem (1 error, 0 warnings)

❯ cat foobar.js
const a = "single+semi"
❯ ccat test.vue
<template>
  <div v-on:click.prevent="activateTab()" v-bind:class="{ active: active }">
    <slot></slot>
  </div>
</template>

<script>
  export default {
    name: 'tab-link',
    data() {
      return {
        storeRegistered: false,
      };
    },
    computed: {
      active() {
        const tab = this.tabs[this.tabGroup];
        const tabName = this.tabName;
        const forceActive = this.forceActive;
        const activeTabName = tab.activeTabName;
        const isActive = !!((tab && activeTabName === tabName) || forceActive);
        return isActive;
      },
      tabs() {
        return this.$store.getters.getTabs;
      },
    },
    props: {
      isDefaultTab: {
        type: Boolean,
      },
      tabGroup: {
        type: String,
        required: true,
      },
      tabName: {
        type: String,
        required: true,
      },
    },
    created() {
      const tab = {};

      tab[this.tabGroup] = {
        activeTabName: this.isDefaultTab ? this.tabName : '',
      };

      if (!this.storeRegistered) {
        this.$store.dispatch('REGISTER_TAB', tab);
        this.storeRegistered = true;
      }
    },
    methods: {
      activateTab() {
        this.$store.dispatch('SET_ACTIVE_TAB', { tabGroup: this.tabGroup, tabName: this.tabName });
      },
    },
  };
</script>

❯ ./node_modules/.bin/eslint --fix test.vue

   9:11  warning  Strings must use doublequote  quotes
  13:8   warning  Extra semicolon               semi
  17:21  error    Unallowed use of `this`       fp/no-this
  17:31  error    Unallowed use of `this`       fp/no-this
  17:45  warning  Extra semicolon               semi
  18:25  error    Unallowed use of `this`       fp/no-this
  18:37  warning  Extra semicolon               semi
  19:29  error    Unallowed use of `this`       fp/no-this
  19:45  warning  Extra semicolon               semi
  20:48  warning  Extra semicolon               semi
  21:79  warning  Extra semicolon               semi
  22:24  warning  Extra semicolon               semi
  25:16  error    Unallowed use of `this`       fp/no-this
  25:43  warning  Extra semicolon               semi
  42:21  warning  Extra semicolon               semi
  44:11  error    Unallowed use of `this`       fp/no-this
  45:24  error    Unallowed use of `this`       fp/no-this
  45:44  error    Unallowed use of `this`       fp/no-this
  45:59  warning  Strings must use doublequote  quotes
  46:8   warning  Extra semicolon               semi
  48:12  error    Unallowed use of `this`       fp/no-this
  49:9   error    Unallowed use of `this`       fp/no-this
  49:30  warning  Strings must use doublequote  quotes
  49:50  warning  Extra semicolon               semi
  50:9   error    Unallowed use of `this`       fp/no-this
  50:36  warning  Extra semicolon               semi
  55:9   error    Unallowed use of `this`       fp/no-this
  55:30  warning  Strings must use doublequote  quotes
  55:60  error    Unallowed use of `this`       fp/no-this
  55:84  error    Unallowed use of `this`       fp/no-this
  55:99  warning  Extra semicolon               semi
  58:4   warning  Extra semicolon               semi

✖ 32 problems (14 errors, 18 warnings)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
chrisvfritzcommented, Jan 20, 2017

@znck I’ll publish very soon (probably tomorrow).

0reactions
chrisvfritzcommented, May 27, 2017

Confirmed. @saiberz Is it not working for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Ways to Fix “This App Does Not Support the Contract ...
6 Ways to Fix “This App Does Not Support the Contract Specified” Error on Windows · 1. Turn Off the Windows Defender Firewall...
Read more >
Fix This App Does Not Support the Contract Specified Error
This app does not support the contract specified or is not installed. What causes it and how to fix it? Here's a full...
Read more >
How to Fix Video Format Not Supported on Windows? [Solved]
In this guide, users will know the root causes of the issue of unsupported video format on Windows and efficient techniques to get...
Read more >
Fix This Browser Does Not Support Video Playback - YouTube
Fix This Browser Does Not Support Video Playback.The error 'this browser does not support video playback' occurs in different browsers ...
Read more >
2022 Fix: "This operating system is not supported" Error on ...
In this video we're going to show you how to fix the "This operating system is not supported " Error on Windows. Watch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found