Skip to content

Commit 8be089e

Browse files
committed
[eslint config] fix tests
1 parent fdb998b commit 8be089e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/eslint-config-airbnb/rules/react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ module.exports = {
375375

376376
// Forbids using non-exported propTypes
377377
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
378-
// this is intentionally set to "warn". it would be "error", but it's only critical if you're using
379-
// a babel transform to strip propTypes in production.
378+
// this is intentionally set to "warn". it would be "error",
379+
// but it's only critical if you're stripping propTypes in production.
380380
'react/forbid-foreign-prop-types': ['warn', { allowInPropTypes: true }],
381381

382382
// Prevent void DOM elements from receiving children

packages/eslint-config-airbnb/whitespace.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
const baseConfig = require('.');
21
const assign = require('object.assign');
32
const entries = require('object.entries');
43
const CLIEngine = require('eslint').CLIEngine;
54

5+
const baseConfig = require('.');
6+
67
function onlyErrorOnRules(rulesToError, config) {
78
const errorsOnly = assign({}, config);
89
const cli = new CLIEngine({ baseConfig: config, useEslintrc: false });

0 commit comments

Comments
 (0)