File tree 2 files changed +4
-3
lines changed
packages/eslint-config-airbnb
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -375,8 +375,8 @@ module.exports = {
375
375
376
376
// Forbids using non-exported propTypes
377
377
// 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.
380
380
'react/forbid-foreign-prop-types' : [ 'warn' , { allowInPropTypes : true } ] ,
381
381
382
382
// Prevent void DOM elements from receiving children
Original file line number Diff line number Diff line change 1
- const baseConfig = require ( '.' ) ;
2
1
const assign = require ( 'object.assign' ) ;
3
2
const entries = require ( 'object.entries' ) ;
4
3
const CLIEngine = require ( 'eslint' ) . CLIEngine ;
5
4
5
+ const baseConfig = require ( '.' ) ;
6
+
6
7
function onlyErrorOnRules ( rulesToError , config ) {
7
8
const errorsOnly = assign ( { } , config ) ;
8
9
const cli = new CLIEngine ( { baseConfig : config , useEslintrc : false } ) ;
You can’t perform that action at this time.
0 commit comments