Skip to content

Commit cbc148c

Browse files
allowing console.error
1 parent 74f50cf commit cbc148c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

codeclimateEslintRulesv4.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
"plugin:prettier/recommended"
1414
],
1515
"rules": {
16-
"no-console": "warn",
16+
"no-console": [
17+
"warn",
18+
{
19+
"allow": [
20+
"error"
21+
]
22+
}
23+
],
1724
"no-param-reassign": "off",
1825
"no-plusplus": "off",
1926
"no-unused-expressions": "off",

es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
},
1212
rules: {
1313
// override airbnb overbearing rules
14-
'no-console': 'warn',
14+
'no-console': ['warn', { allow: ['error'] }],
1515
'no-param-reassign': 'off',
1616
'no-plusplus': 'off',
1717
'no-unused-expressions': 'off',

0 commit comments

Comments
 (0)