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
28import baseConfig from './8.mjs';
import config from '../../node/10.json' with { type: 'json' };
import globals from 'globals';
export default /** @type {import('./10.d.mts').default} */ ([
...baseConfig,
{
languageOptions: {
ecmaVersion: config.parserOptions.ecmaVersion,
globals: {
...globals.es2015,
...globals.es2017,
...globals.node,
},
},
rules: config.rules,
},
{
rules: {
'no-unused-vars': ['error', {
args: 'after-used',
caughtErrors: 'all', // `catch {}` available as of node v10.3.0
vars: 'all',
}],
},
},
]);