Skip to content

Commit 2952af2

Browse files
fatso83ampagent
andauthored
Eslint config 8 (#266)
* Move to @sinonjs/eslint-config 8 - Bump @sinonjs/eslint-config to ^8.0.0 and eslint to ^10.14.0 - Drop ignores, globals and rules the shared config now covers Co-authored-by: Carl Erik Kopseng <carlerik@gmail.com> * Ignore the ES2025 syntax codemod in git blame GitHub and 'git blame' with blame.ignoreRevsFile skip the squashed codemod commit #265, so blame points at the change that last touched a line's logic rather than at the syntax migration. Co-authored-by: Carl Erik Kopseng <carlerik@gmail.com> --------- Co-authored-by: Amp <amp@ampcode.com>
1 parent a22885c commit 2952af2

4 files changed

Lines changed: 1762 additions & 244 deletions

File tree

‎.git-blame-ignore-revs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ES2025 syntax codemod (#265): mechanical eslint --fix and prettier output
2+
a22885c47930b94a7a540333283ff176ed1e0459

‎eslint.config.js‎

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,18 @@ const sinonConfig = require("@sinonjs/eslint-config");
44

55
module.exports = [
66
{
7-
ignores: [
8-
"eslint.config.js",
9-
"coverage/**",
10-
"dist/**",
11-
"docs/**",
12-
"site/**",
13-
],
7+
ignores: ["eslint.config.js", "docs/**"],
148
},
159
...sinonConfig,
1610
{
1711
rules: {
1812
"jsdoc/require-returns": "off",
1913
},
2014
},
21-
{
22-
files: ["lib/**/*.test.js"],
23-
rules: {
24-
"mocha/consistent-spacing-between-blocks": "off",
25-
"no-unused-vars": [
26-
"error",
27-
{ vars: "all", args: "after-used", caughtErrors: "none" },
28-
],
29-
},
30-
},
3115
{
3216
files: ["lib/assertions/json.js", "lib/assertions/match-json.js"],
3317
rules: {
3418
"no-unused-vars": "off",
3519
},
3620
},
37-
{
38-
languageOptions: {
39-
globals: {
40-
ArrayBuffer: false,
41-
Uint8Array: false,
42-
},
43-
},
44-
},
4521
];

0 commit comments

Comments
 (0)