File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/eslint-config-airbnb Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- const baseConfig = require ( '.' ) ;
21const assign = require ( 'object.assign' ) ;
32const entries = require ( 'object.entries' ) ;
43const CLIEngine = require ( 'eslint' ) . CLIEngine ;
54
5+ const baseConfig = require ( '.' ) ;
6+
67function onlyErrorOnRules ( rulesToError , config ) {
78 const errorsOnly = assign ( { } , config ) ;
89 const cli = new CLIEngine ( { baseConfig : config , useEslintrc : false } ) ;
You can’t perform that action at this time.
0 commit comments