-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
legacy.cjs
35 lines (34 loc) · 937 Bytes
/
legacy.cjs
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
// @ts-check
const baseConfig = require('eslint-config-airlight-base/legacy');
const baseConfigSettings = require('eslint-config-airlight-base/settings.cjs');
const rules = require('./rules.cjs');
// @ts-expect-error What it needs idk
/** @type {import('eslint-define-config').ESLintConfig} */
module.exports = {
...baseConfig,
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
// @ts-expect-error It should work but does not
extends: baseConfig.extends.concat(['plugin:n/recommended']),
env: {
es2015: true,
es2020: true,
node: true,
browser: false,
jest: true
},
rules,
// @ts-expect-error It should work but does not
overrides: baseConfig.overrides.concat([
{
files: ['*.cjs'],
rules: {
'@typescript-eslint/no-var-requires': 'off'
}
},
{ files: ['*.ts'], rules: { 'n/no-missing-import': 'off' } }
]),
settings: baseConfigSettings
};