Skip to content

Commit fa6a294

Browse files
committed
allow console warning in linting
1 parent 61fa38e commit fa6a294

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"globals": {
66
"runFormatTest": "readonly"
77
},
8+
"rules": {
9+
"no-console": ["error", { "allow": ["warn"] }]
10+
},
811
"overrides": [
912
{
1013
"files": ["**/*.ts"],

src/parser.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function parse(text, _parsers, options = _parsers) {
2727
if (!satisfies(compiler, ctx.value)) {
2828
// @TODO: investigate the best way to warn that would apply to
2929
// different editors.
30-
// eslint-disable-next-line no-console
3130
console.warn(
3231
`[prettier-solidity] The compiler option is set to '${options.compiler}', which does not satisfy 'pragma solidity ${ctx.value}'.`
3332
);

0 commit comments

Comments
 (0)