2016-08-10 15:13:17 +00:00
|
|
|
import * as ActionTypes from '../../../constants';
|
|
|
|
|
2016-08-11 17:24:02 +00:00
|
|
|
export function updateLintMessage(severity, line, message) {
|
|
|
|
return {
|
2016-08-11 18:09:59 +00:00
|
|
|
type: ActionTypes.UPDATE_LINT_MESSAGE,
|
2016-08-11 17:24:02 +00:00
|
|
|
severity,
|
|
|
|
line,
|
|
|
|
message
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function clearLintMessage() {
|
|
|
|
return {
|
2016-08-11 18:09:59 +00:00
|
|
|
type: ActionTypes.CLEAR_LINT_MESSAGE
|
2016-08-11 17:24:02 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function updateLineNumber(lineNo) {
|
|
|
|
return {
|
|
|
|
type: ActionTypes.UPDATE_LINENUMBER,
|
|
|
|
lineNo
|
|
|
|
};
|
|
|
|
}
|