Skip to content

Commit 562a179

Browse files
committed
chore: update linting presets
1 parent c1c5528 commit 562a179

File tree

9 files changed

+534
-377
lines changed

9 files changed

+534
-377
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @author Martin Giger
32
* @license MIT
3+
* @author Martin Giger
44
*/
55
"use strict";
66

package-lock.json

Lines changed: 520 additions & 363 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"author": "Martin Giger (https://humanoids.be)",
1313
"license": "MIT",
1414
"devDependencies": {
15-
"@freaktechnik/eslint-config-node": "^9.0.3",
16-
"@freaktechnik/eslint-config-test": "^9.0.1",
17-
"@typescript-eslint/parser": "^5.58.0",
15+
"@freaktechnik/eslint-config-node": "^9.1.1",
16+
"@freaktechnik/eslint-config-test": "^9.1.1",
17+
"@typescript-eslint/parser": "^5.59.0",
1818
"ava": "^5.2.0",
1919
"eclint": "^2.8.1",
20-
"eslint": "^8.38.0",
20+
"eslint": "^8.39.0",
2121
"eslint-ava-rule-tester": "^4.0.0",
2222
"eslint-plugin-eslint-plugin": "^5.0.8",
2323
"eslint-plugin-optimize-regex": "^1.2.1",

rules/avoid-reverse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @author Martin Giger
32
* @license MIT
3+
* @author Martin Giger
44
*/
55
"use strict";
66

rules/from-map.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @author Martin Giger
32
* @license MIT
3+
* @author Martin Giger
44
*/
55
"use strict";
66

@@ -62,9 +62,9 @@ module.exports = {
6262
callback,
6363
thisArgument
6464
] = parent.arguments,
65-
parameters = callback.type !== "Identifier"
66-
? callback.params.length > mapCallback.params.length ? callback.params : mapCallback.params
67-
: ALL_PARAMS,
65+
parameters = callback.type === "Identifier"
66+
? ALL_PARAMS
67+
: callback.params.length > mapCallback.params.length ? callback.params : mapCallback.params,
6868
parameterString = parameters.map((p) => p.name).join(PARAM_SEPARATOR),
6969
getCallback = (cbk, targ, ps) => {
7070
const source = `(${sourceCode.getText(cbk)})`;

rules/no-unnecessary-this-arg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @author Martin Giger
32
* @license MIT
3+
* @author Martin Giger
44
*/
55
"use strict";
66

rules/prefer-array-from.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @author Martin Giger
32
* @license MIT
3+
* @author Martin Giger
44
*/
55
"use strict";
66

rules/prefer-flat-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @author Martin Giger
32
* @license MIT
3+
* @author Martin Giger
44
*/
55
"use strict";
66

rules/prefer-flat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @author Martin Giger
32
* @license MIT
3+
* @author Martin Giger
44
*/
55
"use strict";
66

0 commit comments

Comments
 (0)