forked from a-type/adjective-adjective-animal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
32 lines (28 loc) · 848 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import perfectionistNatural from 'eslint-plugin-perfectionist/configs/recommended-natural';
import prettierConfig from 'eslint-plugin-prettier/recommended';
import is from 'eslint-plugin-simple-import-sort';
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
export default [
prettierConfig,
eslintPluginUnicorn.configs['flat/recommended'],
perfectionistNatural,
{
files: ['**/*.js'],
languageOptions: {
ecmaVersion: 2024,
sourceType: 'module',
},
plugins: {
'simple-import-sort': is,
},
rules: {
'no-console': 'off',
'no-unused-vars': 'warn',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
'unicorn/no-null': 'warn',
'unicorn/prefer-top-level-await': 'off',
'unicorn/prevent-abbreviations': 'warn',
},
},
];