diff --git a/lib/main.js b/lib/main.js index 3604d84..43b4cb4 100644 --- a/lib/main.js +++ b/lib/main.js @@ -36,7 +36,13 @@ export default { return []; } - const execArgs = ['-wc', '-Eutf-8']; + const execArgs = [ + '-c', // Check syntax only, no execution + '-w', // Turns on warnings + // Set the encoding to UTF-8 + '--external-encoding=utf-8', + '--internal-encoding=utf-8', + ]; const execOpts = { stdin: fileText, stream: 'stderr',