How to ignore javascript error checker(ES6) with Sage 9

Hello,
I am using Sage 9 and adding some third party jquery library such as jquery.quovolver, etc.
what I am facing the issue is always getting error when execute command
yarn run build.

ERROR in ./scripts/plugins/jquery.quovolver.js
Module build failed: Error: Module failed because of a eslint error.

E:\Projects\me\wp-content\themes\me\assets\scripts\plugins\jquery.quovolver.js
8:1 error Unnecessary semicolon no-extra-semi
38:45 error Missing trailing comma comma-dangle
136:10 error ‘value’ is already defined no-redeclare
236:13 error ‘fade’ is defined but never used no-unused-vars
245:40 error Missing trailing comma comma-dangle
266:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs
267:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs
368:29 error Missing trailing comma comma-dangle

:heavy_multiplication_x: 8 problems (8 errors, 0 warnings)

Note: most of jquery libraries always getting error when command trying to check javascript error(ES6).
So how to avoid that errors? or can we ignore javascript error checker when execute yarn run build or other command?

thanks,

2 Likes

You can ignore files with a .eslintignore file

3 Likes