Skip to content
Advertisement

Tag: webstorm

Why WebStorm show errors in gql query inside apollo object in Vue component or .grapgql files

I have a problem with WebStorm syntax highlighting. I created valid GraphQL query which works on localhost app but WebStorm says that unknown field “familyMembers” on object type “Query” and highlights the whole query in red. I am really confused but maybe I should change something inside apollo.config.js – if yes please tell me what. HelloWorld.vue apollo.config.js Some screenshots: Answer

How to configure eslint indent for WebStorm?

How to set “indent” in .eslintr.json to match the default used in WebStorm? Everything I’ve tried so far, as per the official documentation can’t match it: “indent”: [“error”, 2] – gives many Expected indentation of 2 spaces but found 4 “indent”: [“error”, 4] – gives many Expected indentation of 4 spaces but found 8 “indent”: [“error”, 8] – gives many

Import not working with JavaScript in PhpStorm/Webstorm

I’m trying to run a piece of JavaScript code written in a tutorial that looks like this: main.js However, PhpStorm is giving the following error: Import declarations are not supported by current JavaScript version How I can get a newer(?) JavaScript version in PhpStorm? Is that really the problem here? Answer In your preferences, change the version of javascript to

JSDoc: arrow function params

I’m trying to document my code with JSDoc (EcmaScript 2015, WebStorm 12 Build 144.3357.8). I have an arrow function which I want to document its parameters. This two examples work (I get auto-completion): But when I want to document an arrow function in forEach function, for example, the auto-completion isn’t working (all of the below): Has anyone managed to get

Advertisement