Skip to content

Commit 550b768

Browse files
committed
feat: Ajouter la liste de lecture dans la popup.
1 parent 2c5ead0 commit 550b768

92 files changed

Lines changed: 4364 additions & 4306 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.metalint/eslint.json

Lines changed: 66 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"plugins": ["filenames", "import", "jsdoc", "promise", "unicorn"],
33

44
"parserOptions": {
5-
"ecmaVersion": 2020,
65
"sourceType": "module"
76
},
87

9-
"globals": {
10-
"globalThis": "readonly"
8+
"env": {
9+
"browser": true,
10+
"es2020": true,
11+
"webextensions": true
1112
},
1213

1314
"rules": {
@@ -41,15 +42,18 @@
4142
"skipRegExps": false,
4243
"skipTemplates": false
4344
}],
45+
"no-loss-of-precision": 2,
4446
"no-misleading-character-class": 2,
4547
"no-obj-calls": 2,
48+
"no-promise-executor-return": 2,
4649
"no-prototype-builtins": 2,
4750
"no-regex-spaces": 2,
4851
"no-setter-return": 2,
4952
"no-sparse-arrays": 2,
5053
"no-template-curly-in-string": 2,
5154
"no-unexpected-multiline": 2,
5255
"no-unreachable": 2,
56+
"no-unreachable-loop": 2,
5357
"no-unsafe-finally": 2,
5458
"no-unsafe-negation": [2, { "enforceForOrderingRelations": true }],
5559
"require-atomic-updates": 0,
@@ -62,17 +66,17 @@
6266
"accessor-pairs": [2, { "enforceForClassMembers": true }],
6367
"array-callback-return": 2,
6468
"block-scoped-var": 2,
65-
"class-methods-use-this": 0,
69+
"class-methods-use-this": 2,
6670
"complexity": [1, { "max": 50 }],
6771
"consistent-return": 2,
6872
"curly": 2,
69-
"default-case": 0,
73+
"default-case": 2,
7074
"default-param-last": 2,
7175
"dot-location": [2, "property"],
7276
"dot-notation": [2, { "allowKeywords": true, "allowPattern": "_" }],
7377
"eqeqeq": 2,
7478
"grouped-accessor-pairs": [2, "getBeforeSet"],
75-
"guard-for-in": 0,
79+
"guard-for-in": 2,
7680
"max-classes-per-file": 2,
7781
"no-alert": 2,
7882
"no-caller": 2,
@@ -82,7 +86,7 @@
8286
"no-else-return": [2, { "allowElseIf": false }],
8387
"no-empty-function": [2, { "allow": ["arrowFunctions"] }],
8488
"no-empty-pattern": 2,
85-
"no-eq-null": 0,
89+
"no-eq-null": 2,
8690
"no-eval": 2,
8791
"no-extend-native": 2,
8892
"no-extra-bind": 2,
@@ -112,6 +116,7 @@
112116
}],
113117
"no-proto": 2,
114118
"no-redeclare": 2,
119+
"no-restricted-properties": 2,
115120
"no-return-assign": 2,
116121
"no-return-await": 2,
117122
"no-script-url": 2,
@@ -121,7 +126,7 @@
121126
"no-throw-literal": 2,
122127
"no-unmodified-loop-condition": 2,
123128
"no-unused-expressions": 2,
124-
"no-unused-labels": 0,
129+
"no-unused-labels": 2,
125130
"no-useless-call": 2,
126131
"no-useless-catch": 2,
127132
"no-useless-concat": 2,
@@ -137,15 +142,15 @@
137142
"require-await": 2,
138143
"require-unicode-regexp": 2,
139144
"vars-on-top": 0,
140-
"wrap-iife": 0,
145+
"wrap-iife": 2,
141146
"yoda": [2, "always"],
142147

143148
"strict": [2, "never"],
144149

145150
"init-declarations": 0,
146151
"no-delete-var": 2,
147-
"no-label-var": 0,
148-
"no-restricted-globals": 0,
152+
"no-label-var": 2,
153+
"no-restricted-globals": [2, "event"],
149154
"no-shadow-restricted-names": 2,
150155
"no-shadow": 2,
151156
"no-undef": 2,
@@ -156,22 +161,9 @@
156161
}],
157162
"no-use-before-define": 2,
158163

159-
"callback-return": 0,
160-
"global-require": 0,
161-
"handle-callback-err": 2,
162-
"no-buffer-constructor": 2,
163-
"no-mixed-requires": 2,
164-
"no-new-require": 2,
165-
"no-path-concat": 2,
166-
"no-process-env": 2,
167-
"no-process-exit": 0,
168-
"no-restricted-modules": 0,
169-
"no-restricted-properties": 0,
170-
"no-sync": 0,
171-
172164
"array-bracket-newline": [2, "consistent"],
173165
"array-bracket-spacing": 2,
174-
"array-element-newline": 0,
166+
"array-element-newline": [2, "consistent"],
175167
"block-spacing": 2,
176168
"brace-style": 2,
177169
"camelcase": 2,
@@ -200,7 +192,7 @@
200192
"jsx-quotes": 0,
201193
"key-spacing": [2, { "mode": "minimum", "align": "value" }],
202194
"keyword-spacing": 2,
203-
"line-comment-position": 0,
195+
"line-comment-position": 2,
204196
"linebreak-style": 2,
205197
"lines-around-comment": 2,
206198
"lines-between-class-members": 2,
@@ -224,7 +216,7 @@
224216
"no-array-constructor": 2,
225217
"no-bitwise": 0,
226218
"no-continue": 0,
227-
"no-inline-comments": 0,
219+
"no-inline-comments": 2,
228220
"no-lonely-if": 2,
229221
"no-mixed-operators": 0,
230222
"no-mixed-spaces-and-tabs": 2,
@@ -235,11 +227,30 @@
235227
"no-new-object": 2,
236228
"no-plusplus": 0,
237229
"no-restricted-syntax": [2,
238-
"EmptyStatement", "FunctionDeclaration", "LabeledStatement",
239-
"MetaProperty", "WithStatement", "JSXIdentifier",
240-
"JSXNamespacedName", "JSXMemberExpression", "JSXEmptyExpression",
241-
"JSXExpressionContainer", "JSXElement", "JSXClosingElement",
242-
"JSXOpeningElement", "JSXAttribute", "JSXSpreadAttribute", "JSXText"
230+
"ClassDeclaration",
231+
"DebuggerStatement",
232+
"EmptyStatement",
233+
"ForInStatement",
234+
"FunctionDeclaration",
235+
"LabeledStatement",
236+
"SequenceExpression",
237+
"TaggedTemplateExpression",
238+
"WithStatement",
239+
"YieldExpression",
240+
"JSXIdentifier",
241+
"JSXNamespacedName",
242+
"JSXMemberExpression",
243+
"JSXEmptyExpression",
244+
"JSXExpressionContainer",
245+
"JSXElement",
246+
"JSXClosingElement",
247+
"JSXOpeningElement",
248+
"JSXAttribute",
249+
"JSXSpreadAttribute",
250+
"JSXText",
251+
"ExportDefaultDeclaration",
252+
"ExportAllDeclaration",
253+
"ExportSpecifier"
243254
],
244255
"no-tabs": 2,
245256
"no-ternary": 0,
@@ -262,7 +273,7 @@
262273
"blankLine": "always", "prev": "directive", "next": "*"
263274
}],
264275
"prefer-exponentiation-operator": 2,
265-
"prefer-object-spread": 0,
276+
"prefer-object-spread": 2,
266277
"quote-props": [2, "as-needed"],
267278
"quotes": [2, "double", { "allowTemplateLiterals": true }],
268279
"semi": 2,
@@ -301,8 +312,8 @@
301312
"no-useless-constructor": 2,
302313
"no-useless-rename": 2,
303314
"no-var": 2,
304-
"object-shorthand": 0,
305-
"prefer-arrow-callback": 0,
315+
"object-shorthand": 2,
316+
"prefer-arrow-callback": 2,
306317
"prefer-const": 2,
307318
"prefer-destructuring": 0,
308319
"prefer-numeric-literals": 2,
@@ -316,7 +327,7 @@
316327
"template-curly-spacing": 2,
317328
"yield-star-spacing": 2,
318329

319-
"filenames/match-regex": [2, "^[_a-z][-0-9_a-z]+$"],
330+
"filenames/match-regex": [2, "^_?[a-z][0-9a-z]*(-[0-9a-z]+)*$"],
320331
"filenames/match-exported": [2, "kebab"],
321332
"filenames/no-index": 0,
322333

@@ -333,7 +344,7 @@
333344
"import/no-cycle": 2,
334345
"import/no-useless-path-segments": 2,
335346
"import/no-relative-parent-imports": 0,
336-
"import/no-unused-modules": 0,
347+
"import/no-unused-modules": 2,
337348

338349
"import/export": 2,
339350
"import/no-named-as-default": 2,
@@ -356,35 +367,44 @@
356367
"import/newline-after-import": 2,
357368
"import/prefer-default-export": 0,
358369
"import/max-dependencies": 0,
359-
"import/no-unassigned-import": 0,
370+
"import/no-unassigned-import": 2,
360371
"import/no-named-default": 2,
361372
"import/no-default-export": 2,
362373
"import/no-named-export": 0,
363374
"import/no-anonymous-default-export": 2,
364375
"import/group-exports": 0,
365376
"import/dynamic-import-chunkname": 2,
366377

378+
"jsdoc/check-access": 2,
367379
"jsdoc/check-alignment": 2,
368380
"jsdoc/check-examples": 2,
369381
"jsdoc/check-indentation": 0,
370382
"jsdoc/check-param-names": 2,
383+
"jsdoc/check-property-names": 2,
371384
"jsdoc/check-syntax": 2,
372385
"jsdoc/check-tag-names": 2,
373386
"jsdoc/check-types": 2,
387+
"jsdoc/check-values": 2,
388+
"jsdoc/empty-tags": 2,
374389
"jsdoc/implements-on-classes": 2,
375-
"jsdoc/match-description": [2, { "matchDescription": "[A-Z].*" }],
390+
"jsdoc/match-description": [2, { "matchDescription": "[A-].*" }],
376391
"jsdoc/newline-after-description": 2,
377392
"jsdoc/no-types": 0,
378393
"jsdoc/no-undefined-types": [2, { "definedTypes": ["Timeout"] }],
379-
"jsdoc/require-description": 0,
394+
"jsdoc/require-description": 2,
380395
"jsdoc/require-description-complete-sentence": 0,
381396
"jsdoc/require-example": 0,
382-
"jsdoc/require-hyphen-before-param-description": 0,
397+
"jsdoc/require-file-overview": 0,
398+
"jsdoc/require-hyphen-before-param-description": [2, "never"],
383399
"jsdoc/require-jsdoc": 2,
384400
"jsdoc/require-param": 2,
385401
"jsdoc/require-param-description": 2,
386402
"jsdoc/require-param-name": 2,
387403
"jsdoc/require-param-type": 2,
404+
"jsdoc/require-property": 2,
405+
"jsdoc/require-property-description": 2,
406+
"jsdoc/require-property-name": 2,
407+
"jsdoc/require-property-type": 2,
388408
"jsdoc/require-returns": 0,
389409
"jsdoc/require-returns-check": 2,
390410
"jsdoc/require-returns-description": 2,
@@ -396,7 +416,7 @@
396416
"promise/param-names": 2,
397417
"promise/always-return": 0,
398418
"promise/no-native": 0,
399-
"promise/no-nesting": 0,
419+
"promise/no-nesting": 2,
400420
"promise/no-promise-in-callback": 2,
401421
"promise/no-callback-in-promise": 2,
402422
"promise/avoid-new": 0,
@@ -431,9 +451,11 @@
431451
"unicorn/no-new-buffer": 2,
432452
"unicorn/no-null": 0,
433453
"unicorn/no-process-exit": 2,
454+
"unicorn/no-reduce": 0,
434455
"unicorn/no-unreadable-array-destructuring": 2,
435456
"unicorn/no-unsafe-regex": 2,
436457
"unicorn/no-unused-properties": 2,
458+
"unicorn/no-useless-undefined": 0,
437459
"unicorn/no-zero-fractions": 2,
438460
"unicorn/number-literal-case": 2,
439461
"unicorn/prefer-add-event-listener": 2,
@@ -446,9 +468,10 @@
446468
"unicorn/prefer-node-append": 2,
447469
"unicorn/prefer-node-remove": 2,
448470
"unicorn/prefer-number-properties": 2,
471+
"unicorn/prefer-optional-catch-binding": 2,
449472
"unicorn/prefer-query-selector": 2,
450473
"unicorn/prefer-reflect-apply": 2,
451-
"unicorn/prefer-replace-all": 0,
474+
"unicorn/prefer-replace-all": 2,
452475
"unicorn/prefer-set-has": 2,
453476
"unicorn/prefer-spread": 2,
454477
"unicorn/prefer-starts-ends-with": 2,

.metalint/eslint_nodejs.json

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)