Yongmin Hong
359bcd4451
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 |
||
---|---|---|
.. | ||
types | ||
eslint.config.js | ||
package.json | ||
README.md |
@revi/eslint-config
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,
];