I have this code in my vue-js app:  methods: {     onSubmit() {       ApiService.post('auth/sign_in', {         email: this.email,         password: this.password,       })         .then((res) => {           saveHeaderToCookie(res.headers)...
With this code:  import React from 'react'; import { Link } from 'react-router'; import { View, NavBar } from 'amazeui-touch';  import * as Pages from '../components';  const {  Home, ...Components } = Pages;   I get t...
I've installed eslint-config-airbnb that is supposed to pre configure ESLINT for React:     Our default export contains all of our ESLint rules, including   ECMAScript 6+ and React. It requires eslint, eslint-plugin-import,   eslint-plugin-react,...
ESLint is throwing a Parsing error: Unexpected token = error when I try to lint my Es6 classes.  What configuration parameter am I missing to enable fat arrow class methods in eslint?   Sample class:   class App extends React.Component{     ...     h...
In my class, eslint is complaining "Expected 'this' to be used by class method 'getUrlParams'  Here is my class:  class PostSearch extends React.Component {   constructor(props) {     super(props);     this.getSearchResults();   }...
My javascript code is working perfectly except ESLint is showing that I have errors, such as:     "ERROR: 'myFunction' is defined but never used. [no-unused-vars]"   and     "ERROR: 'document' is not defined. [no-undef]...
I just updated Visual Studio 2017 from RC to final. I didn’t get the following error but recently I get this error. In building the project, I get the following error and it prevents the web project to start:  Severity    Code    Description Projec...
I am using React and Redux to develop a webapp and when I started up my project I got this:  Line 13:  Unexpected use of 'location'  no-restricted-globals  Search for the keywords to learn more about each error.   I search a lot about how to...
I have a problem with eslint, it gives me [Parsing Error The keyword import is reserve] this is only  occur in sublime, in atom editor  work well. I have eslint  .eslintrc.js  module.exports = {     "extends": "airbnb",     "plugi...
Recently, we've upgraded to ESLint 3.0.0 and started to receive the following message running the grunt eslint task:  > $ grunt eslint Running "eslint:files" (eslint) task Warning: No ESLint configuration found. Use --force to continue...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.