Skip to content

Commit db32571

Browse files
author
Zoltan
committed
v1.0.3
Added rule: react/jsx-indent-props
1 parent abca9d4 commit db32571

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
example/

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ Basic rules: https://github.com/airbnb/javascript
3737
### ```indent: ['error', 4],```
3838
This rule enforces a consistent indentation style. 4 spaces.
3939

40+
### ```'react/jsx-indent-props': [2, 'first'],```
41+
This option validates a specific indentation style for props.
42+
4043
### ```'react/jsx-indent': [2, 4],```
4144
This rule enforces a consistent indentation style in JSX. 4 spaces.
4245

@@ -68,13 +71,13 @@ Disallow Script URLs. Using javascript: URLs is considered by some as a form of
6871

6972
Disabled, I like to use ```javascript:{}```.
7073

71-
### ```'jsx-a11y/click-events-have-key-events": 0,```
74+
### ```'jsx-a11y/click-events-have-key-events': 0,```
7275

7376
Disallows using onClick without onKey event.
7477

7578
Disabled. We want to be able add onClick attributes without additional events.
7679

77-
### ```'react/no-danger": 0,'```
80+
### ```'react/no-danger': 0,'```
7881

7982
Prevent usage of dangerous JSX properties.
8083

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-colourbox",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "This package provides Colourbox's .eslintrc as an extensible shared config.",
55
"main": "index.js",
66
"scripts": {

rules/colourbox.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ module.exports = {
1818
rules: {
1919
indent: ['error', 4],
2020
'react/jsx-indent': [2, 4],
21+
'react/jsx-indent-props': [2, 'first'],
2122
'import/no-unresolved': 0,
2223
'class-methods-use-this': 0,
2324
'max-len': 0,
2425
'jsx-a11y/anchor-is-valid': 0,
25-
"jsx-a11y/click-events-have-key-events": 0,
26+
'jsx-a11y/click-events-have-key-events': 0,
2627
'no-script-url': 0,
27-
"react/no-danger": 0,
28+
'react/no-danger': 0,
2829
},
2930
plugins: [
3031
'react',

0 commit comments

Comments
 (0)