forked from pchuri/confluence-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
33 lines (31 loc) · 845 Bytes
/
eslint.config.js
File metadata and controls
33 lines (31 loc) · 845 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
const util = require('util');
const js = require('@eslint/js');
const globals = require('globals');
if (typeof global.structuredClone !== 'function') {
global.structuredClone = typeof util.structuredClone === 'function'
? util.structuredClone
: (value) => JSON.parse(JSON.stringify(value));
}
module.exports = [
js.configs.recommended,
{
files: ['**/*.js'],
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
globals: {
...globals.node,
...globals.jest
}
},
rules: {
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-unused-vars': ['error', { argsIgnorePattern: '^_', caughtErrors: 'none' }],
'no-console': 'off',
'no-process-exit': 'off'
}
}
];