Summary: Not worthy of new release though. Signed-off-by: Yongmin Hong <revi@omglol.email> Test Plan: Browse the markdown in editor's preview mode Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D337
26 lines
825 B
Markdown
26 lines
825 B
Markdown
# @revi/eslint-config
|
|
|
|
[](https://www.npmjs.com/package/@revi/eslint-config)
|
|
[](https://github.com/revi/sandbox/tree/master/npm/eslint-config)
|
|
|
|
This is [@revi](https://revi.xyz/)'s personal [eslint](https://eslint.org/docs/latest/use/configure/configuration-files) config.
|
|
|
|
## Config
|
|
|
|
```js
|
|
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,
|
|
];
|
|
```
|