File tree Expand file tree Collapse file tree 4 files changed +326
-306
lines changed Expand file tree Collapse file tree 4 files changed +326
-306
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import js from '@eslint/js' ;
2
+ import prettierConfig from 'eslint-plugin-prettier/recommended' ;
3
+ import jestPlugin from 'eslint-plugin-jest' ;
4
+ import globals from 'globals' ;
5
+
6
+ export default [
7
+ {
8
+ files : [ '**/*.js' ] ,
9
+ } ,
10
+ {
11
+ // Ignore patterns
12
+ ignores : [ 'coverage/**' ] ,
13
+ } ,
14
+ js . configs . recommended ,
15
+ prettierConfig ,
16
+ {
17
+ // Base settings
18
+ languageOptions : {
19
+ ecmaVersion : 'latest' ,
20
+ sourceType : 'module' ,
21
+ globals : {
22
+ ...globals . node ,
23
+ ...globals . es6 ,
24
+ } ,
25
+ } ,
26
+ rules : {
27
+ 'prettier/prettier' : 'warn' ,
28
+ } ,
29
+ } ,
30
+ {
31
+ // Jest settings for test files
32
+ files : [ '**/*.test.js' ] ,
33
+ languageOptions : {
34
+ globals : {
35
+ ...globals . jest ,
36
+ } ,
37
+ } ,
38
+ plugins : {
39
+ jest : jestPlugin ,
40
+ } ,
41
+ rules : {
42
+ ...jestPlugin . configs . recommended . rules ,
43
+ ...jestPlugin . configs . style . rules ,
44
+ } ,
45
+ } ,
46
+ ] ;
You can’t perform that action at this time.
0 commit comments