source: imaps-frontend/node_modules/es-abstract/.eslintrc@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.8 KB
Line 
1{
2 "root": true,
3
4 "extends": "@ljharb",
5
6 "env": {
7 "es6": true,
8 },
9
10 "rules": {
11 "array-bracket-newline": 0,
12 "complexity": 0,
13 "eqeqeq": [2, "allow-null"],
14 "func-name-matching": 0,
15 "id-length": [2, { "min": 1, "max": 40 }],
16 "max-params": [2, 5],
17 "max-lines-per-function": 1,
18 "max-statements": 1,
19 "max-statements-per-line": [2, { "max": 2 }],
20 "multiline-comment-style": 0,
21 "no-implicit-coercion": [2, {
22 "boolean": false,
23 "number": false,
24 "string": true,
25 }],
26 "no-magic-numbers": 0,
27 "new-cap": 0,
28 "no-extra-parens": 1,
29 "sort-keys": 0,
30 },
31
32 "overrides": [
33 {
34 "files": "GetIntrinsic.js",
35 "rules": {
36 "max-statements": 0,
37 }
38 },
39 {
40 "files": "operations/*",
41 "rules": {
42 "max-lines": 0,
43 },
44 },
45 {
46 "files": [
47 "operations/deltas.js",
48 "operations/getOps.js",
49 "operations/spackle.js",
50 "operations/years.js",
51 ],
52 "extends": "@ljharb/eslint-config/node/latest",
53 "rules": {
54 "complexity": 0,
55 "func-style": 0,
56 "max-lines-per-function": 0,
57 "max-nested-callbacks": 0,
58 "max-statements": 0,
59 "no-magic-numbers": 0,
60 "no-throw-literal": 0,
61 },
62 },
63 {
64 "files": "test/**",
65 "extends": "@ljharb/eslint-config/tests",
66 "rules": {
67 "max-len": 0,
68 "max-lines-per-function": 0,
69 "no-implicit-coercion": 0,
70 "no-invalid-this": 1,
71 "prefer-promise-reject-errors": 0,
72 },
73 },
74 {
75 "files": [
76 "*/Num*ToRawBytes.js",
77 "*/RawBytesToNum*.js",
78 "helpers/bytesAs*.js",
79 "helpers/valueToFloat*.js",
80 ],
81 "rules": {
82 "max-lines-per-function": "off",
83 "max-statements": "off",
84 "no-redeclare": "warn",
85 "operator-linebreak": [2, "before", {
86 "overrides": {
87 "=": "none"
88 }
89 }],
90 },
91 },
92 {
93 "files": "./*/GetSubstitution.js",
94 "rules": {
95 "max-depth": "off",
96 },
97 },
98 ],
99}
Note: See TracBrowser for help on using the repository browser.