npm install eslint --save-dev
npx eslint yourfile.js
# or
node_modules/.bin/eslint yourfile.js
.eslintrc
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']
}
};
.eslintignore
node_modules/
public/js/vendor/