-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.eslintrc.yaml
99 lines (98 loc) · 2.44 KB
/
.eslintrc.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
extends: airbnb-base
parserOptions:
ecmaVersion: 2022
sourceType: module
ignorePatterns:
- /distjs/*
- /dist/*
- /src/swiss-army-knife-card.js
rules:
no-else-return: 0
no-underscore-dangle: 0
nonblock-statement-body-position: 0
# curly checks for all {} after if for instance
curly: 0
no-return-assign: 0
consistent-return: 0
no-mixed-operators: 0
class-methods-use-this: 0
no-nested-ternary: 0
camelcase: 0
# Added for convenience to check eslint...
# Settings handled:
no-param-reassign: 0
max-len:
- warn
- code: 220
ignoreComments: true
eqeqeq: 1
brace-style: 1
# - Prevent warnings in logging and multiple params on one line
function-call-argument-newline: 0
function-paren-newline: 0
# - Allow i++ / i-- in for loops
no-plusplus:
- warn
- allowForLoopAfterthoughts: true
no-irregular-whitespace: 0
no-bitwise:
- warn
- allow:
- "~"
# - Disable .js import warnings
import/extensions: 0
# - Allow the use of console.()
no-console: 0
# - Allow for calling .hasOwnProperty for instance directly
no-prototype-builtins: 0
# - Allow as-needed function names
func-names:
- warn
- as-needed
# - Just let me index arrays and get data from them
prefer-destructuring: 0
# - For now, keep using things like isNaN() as Number.isNan() is incompatible.
# Ignore the eslint advice to replace them. As a result everything crashes...
no-restricted-globals: 0
# Ignore identiation for now
indent: 0
no-unreachable: 0
# THINGS THAT MUST BE HANDLED LATER...
# - This is a thing from the segmented-arc, the only file with errors/warnings!
# - Status as of 2023.05.06 13:00
block-scoped-var: 0
vars-on-top: 0
no-var: 0
no-redeclare: 0
no-setter-return: 0
no-multi-assign: 0
no-empty: 0
no-unused-vars: 0
prefer-const: 0
no-lonely-if: 0
no-shadow: 0
no-loop-func: 0
# Settings handled and NOT occuring anymore!
no-undef: 2
no-use-before-define: 1
no-case-declarations: 1
no-inner-declarations: 1
array-callback-return: 1
max-classes-per-file: 1
no-new-func: 1
no-constant-condition: 1
default-case: 1
default-case-last: 1
operator-assignment: 1
no-sequences: 1
no-restricted-syntax: 1
no-unused-expressions: 1
no-useless-escape: 1
import/no-unresolved: 1
no-template-curly-in-string: 1
# Settings disabled for now, until handled
globals:
browser: true
window: true
Event: true
customElements: true