Skip to content

Commit

Permalink
Silence CJS deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cahamilton committed Dec 15, 2023
1 parent 7154c92 commit 9ed4612
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ const index = require('../index');
* @return {Promise<{errored, invalidOptionWarnings, warnings}>}
*/
const lintCode = async ({ code, config }) => {
const actual = await stylelint.lint({ code, config });
const actual = await stylelint.lint({
code,
config,
quietDeprecationWarnings: true,
});

const { errored, results } = actual;
const { invalidOptionWarnings, warnings } = results[0];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"coverage": "coveralls < coverage/lcov.info",
"eslint": "eslint .",
"jest": "jest",
"jest": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest",
"prettier": "prettier --check '**/*.js'",
"test": "npm run eslint && npm run prettier && npm run jest"
},
Expand Down

0 comments on commit 9ed4612

Please sign in to comment.