File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change
1
+ example /
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ Basic rules: https://github.com/airbnb/javascript
37
37
### ``` indent: ['error', 4], ```
38
38
This rule enforces a consistent indentation style. 4 spaces.
39
39
40
+ ### ``` 'react/jsx-indent-props': [2, 'first'], ```
41
+ This option validates a specific indentation style for props.
42
+
40
43
### ``` 'react/jsx-indent': [2, 4], ```
41
44
This rule enforces a consistent indentation style in JSX. 4 spaces.
42
45
@@ -68,13 +71,13 @@ Disallow Script URLs. Using javascript: URLs is considered by some as a form of
68
71
69
72
Disabled, I like to use ``` javascript:{} ``` .
70
73
71
- ### ``` 'jsx-a11y/click-events-have-key-events" : 0, ```
74
+ ### ``` 'jsx-a11y/click-events-have-key-events' : 0, ```
72
75
73
76
Disallows using onClick without onKey event.
74
77
75
78
Disabled. We want to be able add onClick attributes without additional events.
76
79
77
- ### ``` 'react/no-danger" : 0,' ```
80
+ ### ``` 'react/no-danger' : 0,' ```
78
81
79
82
Prevent usage of dangerous JSX properties.
80
83
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-config-colourbox" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " This package provides Colourbox's .eslintrc as an extensible shared config." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -18,13 +18,14 @@ module.exports = {
18
18
rules : {
19
19
indent : [ 'error' , 4 ] ,
20
20
'react/jsx-indent' : [ 2 , 4 ] ,
21
+ 'react/jsx-indent-props' : [ 2 , 'first' ] ,
21
22
'import/no-unresolved' : 0 ,
22
23
'class-methods-use-this' : 0 ,
23
24
'max-len' : 0 ,
24
25
'jsx-a11y/anchor-is-valid' : 0 ,
25
- " jsx-a11y/click-events-have-key-events" : 0 ,
26
+ ' jsx-a11y/click-events-have-key-events' : 0 ,
26
27
'no-script-url' : 0 ,
27
- " react/no-danger" : 0 ,
28
+ ' react/no-danger' : 0 ,
28
29
} ,
29
30
plugins : [
30
31
'react' ,
You can’t perform that action at this time.
0 commit comments