sandbox/npm/eslint-config
Yongmin Hong 359bcd4451
npm(eslint-config): move peerDep to dep
Summary:
ESlint flat config blog says [ref] to use dependencies not
peerDependencies (for plugins).

Also add tsc for types as some tools complain about it.

Ref: https://eslint.org/blog/2023/10/flat-config-rollout-plans/
Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `npm ci`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D435
2024-06-27 20:12:15 +09:00
..
types npm(eslint-config): move peerDep to dep 2024-06-27 20:12:15 +09:00
eslint.config.js CI: add eslint 2024-06-16 15:50:44 +09:00
package.json npm(eslint-config): move peerDep to dep 2024-06-27 20:12:15 +09:00
README.md npm(README): add shields.io badges 2024-06-17 12:46:50 +09:00

@revi/eslint-config

NPM Version GitHub License

This is @revi's personal eslint config.

Config

import globals from 'globals';
import pluginJs from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';

export default [
  pluginJs.configs.recommended,
  {
    rules: {
      'no-undef': 'warn',
      'no-unused-vars': 'warn',
    },
  },
  {languageOptions: {globals: globals.browser}},
  eslintConfigPrettier,
];