Skip to content

Commit 80800d6

Browse files
authored
ESLint: Disallow warnings in CI (#5261)
1 parent 8e8898d commit 80800d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"bench:e2e:ci-visibility": "node benchmark/e2e-ci/benchmark-run.js",
1313
"type:doc": "cd docs && yarn && yarn build",
1414
"type:test": "cd docs && yarn && yarn test",
15-
"lint": "node scripts/check_licenses.js && eslint . && yarn audit",
16-
"lint:fix": "node scripts/check_licenses.js && eslint . --fix && yarn audit",
15+
"lint": "node scripts/check_licenses.js && eslint . --max-warnings 0 && yarn audit",
16+
"lint:fix": "node scripts/check_licenses.js && eslint . --max-warnings 0 --fix && yarn audit",
1717
"release:proposal": "node scripts/release/proposal",
1818
"services": "node ./scripts/install_plugin_modules && node packages/dd-trace/test/setup/services",
1919
"test": "SERVICES=* yarn services && mocha --expose-gc 'packages/dd-trace/test/setup/node.js' 'packages/*/test/**/*.spec.js'",

packages/dd-trace/test/config.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@ describe('Config', () => {
16381638

16391639
it('should not transform the lookup parameter', () => {
16401640
const lookup = () => 'test'
1641-
const config = new Config({ lookup: lookup })
1641+
const config = new Config({ lookup })
16421642

16431643
expect(config.lookup).to.equal(lookup)
16441644
})

0 commit comments

Comments
 (0)