Tim Duncklee
Tim Duncklee

Reputation: 1420

Using codeceptJS with PhpStorm

I'm just starting with codeceptJS and I'd like the PhpStorm editor to recognize the code correctly.

I have tried telling the editor to Use JavaScript Library with Node.js Core and Globals. I've searched plugins for one that would help and the web. Nothing...

I can just start disabling inspections but I would like to have all the nice editor features functional.

I am using PhpStorm 8 but can upgrade if it helps.

Anyone know how to setup PhpStorm so it handles codeceptJS code correctly?

Upvotes: 1

Views: 820

Answers (1)

Tim Duncklee
Tim Duncklee

Reputation: 1420

I figured out how to make PhpStorm "happy" with codeceptJS code. In JavaScript settings set the language version to ECMAScript 6 and check Prefer Strict mode.

Now inspections and code reformat works correctly.

Upvotes: 2

Related Questions