File tree 1 file changed +9
-0
lines changed
packages/eslint-config-airbnb/rules
1 file changed +9
-0
lines changed 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
+
1
6
module . exports = {
2
7
plugins : [
3
8
'react' ,
@@ -12,6 +17,10 @@ module.exports = {
12
17
// View link below for react rules documentation
13
18
// https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules
14
19
rules : {
20
+ 'no-underscore-dangle' : [ dangleRules [ 0 ] , assign ( { } , dangleRules [ 1 ] , {
21
+ allow : dangleRules [ 1 ] . allow . concat ( [ '__REDUX_DEVTOOLS_EXTENSION_COMPOSE__' ] ) ,
22
+ } ) ] ,
23
+
15
24
// Specify whether double or single quotes should be used in JSX attributes
16
25
// https://eslint.org/docs/rules/jsx-quotes
17
26
'jsx-quotes' : [ 'error' , 'prefer-double' ] ,
You can’t perform that action at this time.
0 commit comments