Skip to content

Commit 59f0b1c

Browse files
committed
allow numbers until 16 and some powers of 2
1 parent b62642b commit 59f0b1c

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

js/red-javascript-style-guide/index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@ module.exports = {
1818
"no-extra-label": 2,
1919
"no-implicit-coercion": 2,
2020
"no-lone-blocks": 2,
21-
"no-magic-numbers": [1, { "ignore": [-2, -1, 0, 1, 2] }],
21+
"no-magic-numbers": [1, {
22+
"ignore": [
23+
-2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
24+
10, 11, 12, 13, 14, 15, 16,
25+
32,
26+
64,
27+
128,
28+
256,
29+
512,
30+
1024
31+
]
32+
}],
2233
"no-multi-str": 2,
2334
"no-new-wrappers": 2,
2435
"no-octal-escape": 2,

js/red-javascript-style-guide/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-red",
3-
"version": "1.3.1",
3+
"version": "1.4.0",
44
"license": "CC0-1.0",
55
"homepage": "https://github.com/GrosSacASac/JavaScript-Set-Up/tree/master/js/red-javascript-style-guide",
66
"keywords": [

0 commit comments

Comments
 (0)