-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
39 lines (34 loc) · 1.64 KB
/
.eslintrc.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
36
37
38
39
// Copyright (C) 2017-2022 BinaryMist Limited. All rights reserved.
// This file is ancillary to PurpleTeam.
// purpleteam-logger is free software: you can redistribute it and/or modify
// it under the terms of the MIT License.
// purpleteam-logger is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// MIT License for more details.
module.exports = {
extends: 'airbnb-base',
rules: {
'comma-dangle': ['error', 'never'],
// specify the maximum length of a line in your program
// http://eslint.org/docs/rules/max-len
'max-len': ['error', 200, 2, {
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true
}],
// enforce consistent line breaks inside function parentheses
// https://eslint.org/docs/rules/function-paren-newline
'function-paren-newline': ['error', 'multiline'],
'import/no-unresolved': ['error', { amd: true }],
// Used in order to supress the errors in the use of appending file extensions to the import statement for local modules
// Which is required in order to upgrade from CJS to ESM. At time of upgrade file extensions have to be provided in import statements.
'import/extensions': ['error', { 'js': 'ignorePackages' }],
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'object-curly-newline': ['error', { multiline: true }],
'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 0, maxEOF: 1 }]
},
env: { node: true }
};