Skip to content

Commit

Permalink
Move to 2 space indentation + editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Johnson committed Sep 5, 2016
1 parent 9bb9e0b commit d40841d
Show file tree
Hide file tree
Showing 11 changed files with 2,554 additions and 2,540 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"rules": {
"quotes": [2, "single"],
"strict": [2, "never"],
"indent": ["error", 4, {"SwitchCase": 1}],
"indent": ["error", 2, {"SwitchCase": 1}],
"eol-last": "off",
"arrow-body-style": "off",
"no-underscore-dangle": "off",
Expand Down
88 changes: 44 additions & 44 deletions assets/scripts/src/actions/index.js
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
export const addItem = (value, label, id, choiceId, activateOptions) => {
return {
type: 'ADD_ITEM',
value,
label,
id,
choiceId,
activateOptions,
};
return {
type: 'ADD_ITEM',
value,
label,
id,
choiceId,
activateOptions,
};
};

export const removeItem = (id, choiceId) => {
return {
type: 'REMOVE_ITEM',
id,
choiceId,
};
return {
type: 'REMOVE_ITEM',
id,
choiceId,
};
};

export const highlightItem = (id, highlighted) => {
return {
type: 'HIGHLIGHT_ITEM',
id,
highlighted,
};
return {
type: 'HIGHLIGHT_ITEM',
id,
highlighted,
};
};

export const addChoice = (value, label, id, groupId, disabled) => {
return {
type: 'ADD_CHOICE',
value,
label,
id,
groupId,
disabled,
};
return {
type: 'ADD_CHOICE',
value,
label,
id,
groupId,
disabled,
};
};

export const filterChoices = (results) => {
return {
type: 'FILTER_CHOICES',
results,
};
return {
type: 'FILTER_CHOICES',
results,
};
};

export const activateChoices = (active = true) => {
return {
type: 'ACTIVATE_CHOICES',
active,
};
return {
type: 'ACTIVATE_CHOICES',
active,
};
};

export const addGroup = (value, id, active, disabled) => {
return {
type: 'ADD_GROUP',
value,
id,
active,
disabled,
};
return {
type: 'ADD_GROUP',
value,
id,
active,
disabled,
};
};

export const clearAll = () => {
return {
type: 'CLEAR_ALL',
};
return {
type: 'CLEAR_ALL',
};
};
Loading

0 comments on commit d40841d

Please sign in to comment.