-
-
Notifications
You must be signed in to change notification settings - Fork 237
Expand file tree
/
Copy patheslint.config.mjs
More file actions
27 lines (25 loc) · 787 Bytes
/
eslint.config.mjs
File metadata and controls
27 lines (25 loc) · 787 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
import { FlatCompat } from '@eslint/eslintrc'
import eslintPluginLocal from './eslint-plugin-local/index.mjs'
const compat = new FlatCompat()
export default [
// standard,
...compat.extends('eslint-config-standard'),
{
files: ['**/**.js', '**/**.mjs'],
languageOptions: {
sourceType: 'module',
ecmaVersion: 'latest'
},
plugins: { local: eslintPluginLocal },
rules: {
/*
This is inserted to make this compatible with prettier.
Once https://github.com/prettier/prettier/issues/3845 and https://github.com/prettier/prettier/issues/3847 are solved this might be not needed any more.
*/
'space-before-function-paren': 0,
curly: [2, 'all'],
'local/no-big-int': 'error',
'no-undef': 'warn'
}
}
]