File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
eslint-config-airbnb-base/rules
eslint-config-airbnb/rules Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ module.exports = {
369369 // disallow dangling underscores in identifiers
370370 // https://eslint.org/docs/rules/no-underscore-dangle
371371 'no-underscore-dangle' : [ 'error' , {
372- allow : [ '__REDUX_DEVTOOLS_EXTENSION_COMPOSE__' ] ,
372+ allow : [ ] ,
373373 allowAfterThis : false ,
374374 allowAfterSuper : false ,
375375 enforceInMethodNames : true ,
Original file line number Diff line number Diff line change 1+ const assign = require ( 'object.assign' ) ;
2+ const baseStyleRules = require ( 'eslint-config-airbnb-base/rules/style' ) . rules ;
3+
4+ const dangleRules = baseStyleRules [ 'no-underscore-dangle' ] ;
5+
16module . exports = {
27 plugins : [
38 'react' ,
@@ -12,6 +17,10 @@ module.exports = {
1217 // View link below for react rules documentation
1318 // https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules
1419 rules : {
20+ 'no-underscore-dangle' : [ dangleRules [ 0 ] , assign ( { } , dangleRules [ 1 ] , {
21+ allow : dangleRules [ 1 ] . allow . concat ( [ '__REDUX_DEVTOOLS_EXTENSION_COMPOSE__' ] ) ,
22+ } ) ] ,
23+
1524 // Specify whether double or single quotes should be used in JSX attributes
1625 // https://eslint.org/docs/rules/jsx-quotes
1726 'jsx-quotes' : [ 'error' , 'prefer-double' ] ,
You can’t perform that action at this time.
0 commit comments