ESLint

Config

https://eslint.org/docs/latest/user-guide/configuring/configuration-files

module.exports = {
  extends: ['eslint:recommended', 'plugin:prettier/recommended'],
  plugins: ['jest'],
  env: {
    es6: true,
    'jest/globals': true,
    node: true,
  },
  parserOptions: {
    ecmaVersion: 'latest',
  },
  rules: {
    quotes: ['error', 'single', {avoidEscape: true}],
  },
  overrides: [
    {
      files: ['migrations/*.js', 'models/*.js'],
      rules: {
        'no-unused-vars': 'off',
      },
    },
  ],
};

Disabling

/* eslint-disable rulename */

/* eslint-enable rulename */

// eslint-disable-next-line no-console
console.log('HI!');