-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy patheslint.config.js
47 lines (45 loc) · 946 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import eslintjs from '@eslint/js'
import prettier from 'eslint-plugin-prettier/recommended'
const { configs: eslintConfigs } = eslintjs
export default [
{
ignores: ['lib/', 'loupe.js'],
},
eslintConfigs['recommended'],
prettier,
{
languageOptions: {
globals: {
Buffer: false,
process: false,
document: false,
window: false,
global: false,
HTMLElement: false,
},
},
rules: {
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
},
{
files: ['test/*', 'bench/*'],
languageOptions: {
// if we ever use more globals than this, pull in the `globals` package
globals: {
Buffer: false,
process: false,
console: false,
describe: false,
beforeEach: false,
it: false,
},
},
},
]