Skip to content

Commit

Permalink
breaking: change default indent to 2 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheton Wu committed Oct 28, 2021
1 parent a79505d commit 0658a26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rules/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
'import/no-webpack-loader-syntax': 0,
'import/prefer-default-export': 0,
'import/exports-last': 0,
'indent': [2, 4],
'indent': [2, 2],
'key-spacing': [2, {
'beforeColon': false,
'afterColon': true
Expand Down
4 changes: 2 additions & 2 deletions rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ module.exports = {
'react/jsx-boolean-value': 0,
'react/jsx-curly-spacing': 1,
'react/jsx-filename-extension': 0,
'react/jsx-indent': [2, 4],
'react/jsx-indent-props': [2, 4],
'react/jsx-indent': [2, 2],
'react/jsx-indent-props': [2, 2],
'react/jsx-max-props-per-line': [1, { 'maximum': 3 }],
'react/jsx-wrap-multilines': 1,
'react/jsx-no-bind': [1, {
Expand Down

0 comments on commit 0658a26

Please sign in to comment.