-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy patheslint.config.js
59 lines (57 loc) · 1.53 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
/*
* SPDX-FileCopyrightText: Copyright (c) 2022-2025 Objectionary.com
* SPDX-License-Identifier: MIT
*/
const { configs } = require('@eslint/js');
module.exports = [
{
...configs.all,
files: ['**/*.js'],
ignores: ['node_modules/'],
languageOptions: {
ecmaVersion: 2019,
sourceType: 'module'
},
rules: {
...configs.all.rules,
'camelcase': 'off',
'capitalized-comments': 'off',
'consistent-return': 'off',
'default-param-last': 'off',
'eqeqeq': 'off',
'func-names': 'off',
'func-style': 'off',
'id-length': 'off',
'indent': ['error', 2],
'init-declarations': 'off',
'max-len': ['error', { code: 200 }],
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-params': 'off',
'max-statements': 'off',
'no-alert': 'off',
'no-console': 'off',
'no-dupe-keys': 'off',
'no-inline-comments': 'off',
'no-invalid-this': 'off',
'no-magic-numbers': 'off',
'no-multi-assign': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-promise-executor-return': 'off',
'no-prototype-builtins': 'off',
'no-shadow': 'off',
'no-ternary': 'off',
'no-undef': 'off',
'no-undefined': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'one-var': 'off',
'prefer-destructuring': 'off',
'require-await': 'off',
'require-unicode-regexp': 'off',
'sort-keys': 'off',
'sort-vars': 'off'
}
}
];