-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.mjs
More file actions
40 lines (39 loc) · 890 Bytes
/
eslint.config.mjs
File metadata and controls
40 lines (39 loc) · 890 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
30
31
32
33
34
35
36
37
38
39
40
import { defineConfig, globalIgnores } from 'eslint/config'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import simpleImportSort from 'eslint-plugin-simple-import-sort'
import globals from 'globals'
export default defineConfig([
globalIgnores([
'results/**/*',
'runs/**/*',
'runner/solver/template/**/*',
'**/node_modules',
'**/lib',
'**/build',
'**/dist',
'evals/**',
]),
eslintPluginPrettierRecommended,
{
plugins: {
'simple-import-sort': simpleImportSort,
},
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
},
},
{
files: ['**/babel.config.js', '**/react-native.config.js'],
languageOptions: {
globals: {
...globals.node,
},
},
},
{
rules: {
'prettier/prettier': 'error',
},
},
])