I am new to IntelliJ Idea. When viewing
.js files through the IDE it will display an issue with pink color in the header saying
JSCS: Cannot find 'jscs' script file under JSCS package directory.
I have tried to solve it by configuring JSCS settings but that import doesn't work. I think that occurred due to
use strict keyword.
So how I can resolve that issue?
You have 2 options:
npm i jscs -gand then set JSCS Package to point to :
C:\Users\<my_user>\AppData\Roaming\npm\node_modules\jscs\bin\jscs(on windows, not sure where is it installed on linux). You also need to add a .jscsrc file in the root of your project, you can find a few presets here
©2020 All rights reserved.