-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
45 lines (42 loc) · 995 Bytes
/
eslint.config.mjs
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
/*
* SPDX-FileCopyrightText: © 2024 Sebastian Davids <[email protected]>
* SPDX-License-Identifier: Apache-2.0
*/
// https://eslint.org/docs/latest/use/configure/configuration-files
import globals from 'globals';
import js from '@eslint/js';
// noinspection JSUnusedGlobalSymbols
export default [
{
ignores: ['dist/*'],
},
js.configs.all,
{
name: 'sdavids-node-docker-image-slimming',
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
},
linterOptions: {
reportUnusedDisableDirectives: true,
},
rules: {
'capitalized-comments': 'off',
'id-length': 'off',
'line-comment-position': 'off',
'no-console': 'off',
'no-inline-comments': 'off',
'no-magic-numbers': 'off',
'no-ternary': 'off',
'one-var': 'off',
'sort-keys': 'off',
radix: 'off',
},
},
];