Skip to content

Commit 2490ba2

Browse files
committed
eslint config updates
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent 7a09839 commit 2490ba2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: eslint.config.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ export default [...compat.extends('standard'), {
4141
sourceType: 'module'
4242
},
4343
rules: {
44+
'no-unused-expressions': 'error',
45+
'no-unused-vars': 'error',
4446
'require-await': 'error',
4547
'no-template-curly-in-string': 'off',
4648
'headers/header-format': ['error', {

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"merge-unit": "nyc merge ./coverage/unit/ .nyc_output/coverage.json",
3131
"report-coverage": "npm run merge-clean && npm run merge-unit && npm run merge-e2e && nyc report --reporter=json --reporter=html --reporter=lcov",
3232
"solo": "NODE_OPTIONS=--experimental-vm-modules node --no-deprecation solo.mjs",
33-
"check": "rm -rf docs/public/*; remark . --quiet --frail && eslint .; cd docs; jsdoc -c jsdoc.conf.json",
34-
"format": "remark . --quiet --frail --output && eslint --fix .",
33+
"check": "rm -rf docs/public/*; remark . --quiet --frail && eslint . --ignore-pattern \"docs/*\"; cd docs; jsdoc -c jsdoc.conf.json",
34+
"format": "remark . --quiet --frail --output && eslint --fix . --ignore-pattern \"docs/*\"",
3535
"test-setup": "./test/e2e/setup-e2e.sh",
3636
"test-coverage": "npm run test && npm run test-setup && npm run test-e2e-all && npm run report-coverage"
3737
},

0 commit comments

Comments
 (0)