source: frontend/node_modules/qs/eslint.config.mjs

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[9af201e]1import ljharbConfig from '@ljharb/eslint-config/flat';
2
3export default [
4 {
5 ignores: ['dist/'],
6 },
7
8 ...ljharbConfig,
9
10 {
11 rules: {
12 complexity: 'off',
13 'consistent-return': 'warn',
14 eqeqeq: ['error', 'allow-null'],
15 'func-name-matching': 'off',
16 'id-length': [
17 'error',
18 {
19 max: 25,
20 min: 1,
21 properties: 'never',
22 },
23 ],
24 indent: ['error', 4],
25 'max-lines': 'off',
26 'max-lines-per-function': [
27 'error',
28 { max: 150 },
29 ],
30 'max-params': ['error', 18],
31 'max-statements': ['error', 100],
32 'multiline-comment-style': 'off',
33 'no-continue': 'warn',
34 'no-magic-numbers': 'off',
35 'no-restricted-syntax': [
36 'error',
37 'BreakStatement',
38 'DebuggerStatement',
39 'ForInStatement',
40 'LabeledStatement',
41 'WithStatement',
42 ],
43 },
44 },
45
46 {
47 files: ['test/**'],
48 rules: {
49 'function-paren-newline': 'off',
50 'max-lines-per-function': 'off',
51 'max-statements': 'off',
52 'no-buffer-constructor': 'off',
53 'no-extend-native': 'off',
54 'no-throw-literal': 'off',
55 },
56 },
57];
Note: See TracBrowser for help on using the repository browser.