eslint

Install

npm install eslint --save-dev

Run

npx eslint yourfile.js
# or
node_modules/.bin/eslint yourfile.js

Rule

module.exports = {
  env: {
    browser: true,
    commonjs: true,
    es6: true,
    node: true
  },
  extends: ['google'],
  globals: {
    Atomics: 'readonly',
    SharedArrayBuffer: 'readonly'
  },
  parserOptions: {
    ecmaVersion: 2018
  },
  rules: {
    quotes: ['error', 'double']
  }
};
node_modules/
public/js/vendor/
What Else?