Debian Codegraph @

.eslintrc

raw
1 {
2 "root": true,
3
4 "extends": "@ljharb",
5
6 "rules": {
7 "func-style": "off",
8 "no-magic-numbers": "off",
9 },
10
11 "overrides": [
12 {
13 "files": "bin.js",
14 "extends": "@ljharb/eslint-config/node/0.4",
15 "rules": {
16 "func-style": "off",
17 },
18 },
19 {
20 "files": [
21 "hash.js",
22 "sha.js",
23 "sha1.js",
24 "sha224.js",
25 "sha256.js",
26 "sha384.js",
27 "sha512.js",
28 "test/vectors.js",
29 ],
30 "rules": {
31 "no-underscore-dangle": "off",
32 },
33 },
34 {
35 "files": [
36 "sha.js",
37 "sha1.js",
38 "sha224.js",
39 ],
40 "rules": {
41 "max-params": "off",
42 },
43 },
44 {
45 "files": [
46 "sha256.js",
47 "sha512.js",
48 ],
49 "rules": {
50 "max-statements": "off",
51 },
52 },
53 {
54 "files": [
55 "sha512.js",
56 ],
57 "rules": {
58 "new-cap": "warn",
59 "max-lines": "off",
60 "max-lines-per-function": "off",
61 },
62 },
63 {
64 "files": "hash.js",
65 "globals": {
66 "Uint8Array": false,
67 },
68 },
69 {
70 "files": "test/test.js",
71 "globals": {
72 "Uint16Array": false,
73 },
74 },
75 ],
76 }