-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy patheslint.config.js
More file actions
77 lines (74 loc) · 2.04 KB
/
Copy patheslint.config.js
File metadata and controls
77 lines (74 loc) · 2.04 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* SPDX-FileCopyrightText: Copyright (c) 2022-2026 Objectionary.com
* SPDX-License-Identifier: MIT
*/
const { configs } = require('@eslint/js');
const promise = require('eslint-plugin-promise');
const jsdoc = require('eslint-plugin-jsdoc');
const noEmptyLinesInMethod = require('./eslintPlugin/rules/noEmptyLinesInMethod');
const localPlugin = {
rules: {
'no-empty-lines-in-method': noEmptyLinesInMethod
}};
module.exports = [
{
ignores: ['node_modules/', '.aidy/'],
},
{
...configs.all,
files: ['**/*.js'],
languageOptions: {
ecmaVersion: 2019,
sourceType: 'module'
},
plugins: {
promise,
jsdoc,
local: localPlugin
},
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, { "SwitchCase": 1 }],
'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',
'promise/prefer-await-to-then': 'error',
'jsdoc/check-alignment': 'error',
'local/no-empty-lines-in-method': 'error'
}
},
];