-
-
Notifications
You must be signed in to change notification settings - Fork 156
(test): fixing tests node v18 #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2921255
9abe881
8cf1c4f
5820844
9c0e3b7
e198a03
868a106
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { defineConfig, globalIgnores } from "eslint/config"; | ||
import markdown from "eslint-plugin-markdown"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default defineConfig([globalIgnores(["**/.nyc_output", "**/coverage", "**/node_modules"]), { | ||
extends: compat.extends("plugin:markdown/recommended"), | ||
|
||
plugins: { | ||
markdown, | ||
}, | ||
|
||
rules: { | ||
"eol-last": "error", | ||
eqeqeq: ["error", "allow-null"], | ||
|
||
indent: ["error", 2, { | ||
SwitchCase: 1, | ||
}], | ||
|
||
"no-trailing-spaces": "error", | ||
}, | ||
ignores: [".nyc_output", "coverage", "node_modules"] | ||
}, { | ||
files: ["**/*.md"], | ||
processor: "markdown/markdown", | ||
}, { | ||
files: ["**/*.md/*.js"], | ||
plugins: { | ||
markdown | ||
}, | ||
extends: compat.extends("plugin:markdown/recommended") | ||
} | ||
]); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,10 @@ | |
"parseurl": "~1.3.3" | ||
}, | ||
"devDependencies": { | ||
"@eslint/eslintrc": "^3.3.1", | ||
"@eslint/js": "^9.27.0", | ||
"after": "0.8.2", | ||
"eslint": "7.23.0", | ||
"eslint": "^9.27.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I recommend not updating the linter yet, there's a broader discussion around it (see expressjs/discussions#327) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it. I'll revert it |
||
"eslint-plugin-markdown": "2.0.0", | ||
"mocha": "10.4.0", | ||
"nyc": "15.1.0", | ||
|
@@ -33,8 +35,9 @@ | |
}, | ||
"scripts": { | ||
"lint": "eslint .", | ||
"lint:fix": "eslint --fix .", | ||
"test": "mocha --reporter spec --bail --check-leaks test/", | ||
"test-ci": "nyc --reporter=lcov --reporter=text npm test", | ||
"test-cov": "nyc --reporter=html --reporter=text npm test" | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjohansebas linter continued marking me this line as error. I could not find a workaround