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?
inflearn react api server -50% 할인쿠폰: 15108-f2af1e086101 buy me a coffee