-
-
Notifications
You must be signed in to change notification settings - Fork 444
Expand file tree
/
Copy patheslint.config.mjs
More file actions
29 lines (28 loc) · 716 Bytes
/
eslint.config.mjs
File metadata and controls
29 lines (28 loc) · 716 Bytes
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
import js from '@eslint/js';
import globals from 'globals';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import jestPlugin from 'eslint-plugin-jest';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
export default [
{
ignores: ['coverage/**', 'lib/**', 'node_modules/**']
},
js.configs.recommended,
...tsPlugin.configs['flat/recommended'],
{
files: ['src/**/*.ts', '__tests__/**/*.ts'],
languageOptions: {
ecmaVersion: 2022,
globals: {
...globals.es2022,
...globals.node
},
sourceType: 'module'
}
},
{
files: ['__tests__/**/*.ts'],
...jestPlugin.configs['flat/recommended']
},
prettierRecommended
];