Debian Codegraph @

.eslintrc

raw
1 {
2 "extends": "eslint:recommended",
3 "env": {
4 "browser": true,
5 "es6": true,
6 "node": true
7 },
8 "globals": {
9 "mermaid": true,
10 "mermaidConfig": true,
11 "MathJax": true,
12 "katex": true
13 },
14 "parser": "@babel/eslint-parser",
15 "parserOptions": {
16 "ecmaVersion": 2020,
17 "impliedStrict": true,
18 "sourceType": "module",
19 "ecmaFeatures": {
20 "arrowFunctions": true,
21 "binaryLiterals": true,
22 "blockBindings": true,
23 "classes": true,
24 "defaultParams": true,
25 "destructuring": true,
26 "forOf": true,
27 "generators": true,
28 "globalReturn": true,
29 "modules": true,
30 "objectLiteralComputedProperties": true,
31 "objectLiteralDuplicateProperties": true,
32 "objectLiteralShorthandMethods": true,
33 "objectLiteralShorthandProperties": true,
34 "octalLiterals": true,
35 "regexUFlag": true,
36 "regexYFlag": true,
37 "spread": true,
38 "superInFunctions": false,
39 "templateStrings": true,
40 "unicodeCodePointEscapes": true
41 }
42 },
43 "plugins": [],
44 "rules": {
45 "array-callback-return": 2,
46 "array-bracket-spacing": 2,
47 "arrow-parens": [2, "as-needed"],
48 "arrow-spacing": 2,
49 "block-scoped-var": 2,
50 "block-spacing": 2,
51 "brace-style": 2,
52 "camelcase": [2, {
53 "properties": "always"
54 }],
55 "comma-dangle": [2, "never"],
56 "comma-style": [2, "last"],
57 "complexity": 2,
58 "computed-property-spacing": 2,
59 "consistent-this": 2,
60 "dot-notation": 2,
61 "eol-last": 2,
62 "eqeqeq": 2,
63 "func-call-spacing": 2,
64 "func-names": [2, "never"],
65 "func-style": 2,
66 "generator-star-spacing": 2,
67 "indent": [2, 2, {
68 "FunctionDeclaration": {
69 "body": 1,
70 "parameters": 2
71 },
72 "FunctionExpression": {
73 "body": 1,
74 "parameters": 2
75 },
76 "MemberExpression": 1,
77 "VariableDeclarator": {
78 "var": 2,
79 "let": 2,
80 "const": 3
81 },
82 "ignoredNodes": [
83 "TemplateLiteral"
84 ],
85 "SwitchCase": 1
86 }],
87 "init-declarations": 2,
88 "key-spacing": 2,
89 "keyword-spacing": 2,
90 "linebreak-style": 0,
91 "lines-around-comment": 2,
92 "lines-around-directive": 2,
93 "max-depth": 2,
94 "max-len": [1, {
95 "code": 120,
96 "ignorePattern": "\/\/ TODO"
97 }],
98 "max-nested-callbacks": 2,
99 "max-params": 2,
100 "max-statements-per-line": 2,
101 "new-cap": 2,
102 "newline-per-chained-call": 2,
103 "no-array-constructor": 2,
104 "no-alert": 2,
105 "no-caller": 2,
106 "no-confusing-arrow": [2, {
107 "allowParens": false
108 }],
109 "no-console": 1,
110 "no-duplicate-imports": 2,
111 "no-eq-null": 2,
112 "no-eval": 2,
113 "no-extend-native": 2,
114 "no-extra-bind": 2,
115 "no-floating-decimal": 2,
116 "no-global-assign": 2,
117 "no-invalid-this": 2,
118 "no-labels": 2,
119 "no-lone-blocks": 2,
120 "no-loop-func": 2,
121 "no-multiple-empty-lines": [1, {
122 "max": 1
123 }],
124 "no-nested-ternary": 2,
125 "no-new": 0,
126 "no-new-object": 2,
127 "no-param-reassign": 2,
128 "no-prototype-builtins": 2,
129 "no-shadow": 2,
130 "no-tabs": 2,
131 "no-template-curly-in-string": 2,
132 "no-throw-literal": 2,
133 "no-trailing-spaces": 2,
134 "no-undefined": 2,
135 "no-underscore-dangle": [2, {
136 "allowAfterThis": true,
137 "allowAfterSuper": true
138 }],
139 "no-unneeded-ternary": 2,
140 "no-unsafe-negation": 2,
141 "no-unused-expressions": 2,
142 "no-unused-vars": 1,
143 "no-use-before-define": 2,
144 "no-useless-call": 2,
145 "no-useless-computed-key": 2,
146 "no-useless-constructor": 2,
147 "no-useless-rename": 2,
148 "no-var": 2,
149 "no-whitespace-before-property": 2,
150 "no-with": 2,
151 "object-curly-spacing": [2, "never"],
152 "object-shorthand": 2,
153 "one-var-declaration-per-line": 2,
154 "operator-assignment": 2,
155 "prefer-arrow-callback": 2,
156 "prefer-const": 2,
157 "prefer-numeric-literals": 2,
158 "prefer-spread": 2,
159 "prefer-template": 2,
160 // "quotes": [2, "double"],
161 "radix": 2,
162 "require-jsdoc": [1, {
163 "require": {
164 "FunctionDeclaration": true,
165 "MethodDefinition": true,
166 "ClassDeclaration": false
167 }
168 }],
169 "rest-spread-spacing": 2,
170 "semi": [2, "never"],
171 "semi-spacing": 2,
172 "space-before-function-paren": [2, "never"],
173 "space-in-parens": 2,
174 "space-infix-ops": 2,
175 "space-unary-ops": 2,
176 "spaced-comment": [2, "always", {
177 "line": {
178 "markers": ["/", ":"],
179 "exceptions": ["-", "+"]
180 },
181 "block": {
182 "markers": ["!"],
183 "exceptions": ["*"],
184 "balanced": true
185 }
186 }],
187 "strict": 2,
188 "template-curly-spacing": "off",
189 "unicode-bom": 2,
190 "valid-jsdoc": [1, {
191 "prefer": {
192 "arg": "param",
193 "argument": "param",
194 "class": "constructor",
195 "returns": "return",
196 "virtual": "abstract"
197 },
198 "requireParamDescription": true,
199 "requireReturn": false,
200 "requireReturnDescription": true
201 }],
202 "yield-star-spacing": 2
203 },
204 "root": true
205 }