Skip to content

Commit

Permalink
typescript-eslint 1.8 (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstepien authored and amanmahajan7 committed May 10, 2019
1 parent 125b920 commit a00aa08
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
13 changes: 8 additions & 5 deletions .eslintrc.js
Expand Up @@ -164,7 +164,7 @@ const rules = {
'computed-property-spacing': 1,
'consistent-this': 0,
'eol-last': 1,
'func-call-spacing': 1,
'func-call-spacing': 0,
'func-name-matching': 0,
'func-names': 0,
'func-style': 0,
Expand Down Expand Up @@ -227,7 +227,7 @@ const rules = {
'prefer-object-spread': 1,
'quote-props': [1, 'as-needed'],
'quotes': [1, 'single', { avoidEscape: true }],
'semi': 1,
'semi': 0,
'semi-spacing': 1,
'semi-style': 1,
'sort-keys': 0,
Expand Down Expand Up @@ -409,12 +409,13 @@ const rules = {
'@typescript-eslint/adjacent-overload-signatures': 1,
'@typescript-eslint/array-type': 0,
'@typescript-eslint/await-thenable': 0,
'@typescript-eslint/ban-types': 2,
'@typescript-eslint/ban-ts-ignore': 1,
'@typescript-eslint/ban-types': 2,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/class-name-casing': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/func-call-spacing': 1,
'@typescript-eslint/generic-type-naming': 0,
'@typescript-eslint/indent': [1, 2, { SwitchCase: 1 }],
'@typescript-eslint/interface-name-prefix': 0,
Expand All @@ -425,10 +426,11 @@ const rules = {
'@typescript-eslint/no-array-constructor': 2,
'@typescript-eslint/no-empty-interface': 2,
'@typescript-eslint/no-explicit-any': 2,
'@typescript-eslint/no-extra-parens': 0, // https://github.com/typescript-eslint/typescript-eslint/issues/460
'@typescript-eslint/no-extra-parens': 0, // https://github.com/typescript-eslint/typescript-eslint/issues/509
'@typescript-eslint/no-extraneous-class': 2,
'@typescript-eslint/no-for-in-array': 0,
'@typescript-eslint/no-inferrable-types': 0,
'@typescript-eslint/no-inferrable-types': 1,
'@typescript-eslint/no-magic-numbers': 0,
'@typescript-eslint/no-misused-new': 2,
'@typescript-eslint/no-namespace': 2,
'@typescript-eslint/no-non-null-assertion': 0,
Expand All @@ -453,6 +455,7 @@ const rules = {
'@typescript-eslint/promise-function-async': 0,
'@typescript-eslint/require-array-sort-compare': 0,
'@typescript-eslint/restrict-plus-operands': 0,
'@typescript-eslint/semi': 1,
'@typescript-eslint/type-annotation-spacing': 1,
'@typescript-eslint/unbound-method': 0,
'@typescript-eslint/unified-signatures': 0
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -28,8 +28,8 @@
"@types/react-dom": "^16.8.3",
"@types/react-is": "^16.7.1",
"@types/shallowequal": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"@typescript-eslint/eslint-plugin": "^1.8.0",
"@typescript-eslint/parser": "^1.8.0",
"babel-loader": "^8.0.5",
"clean-css": "^4.2.1",
"css-loader": "^2.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-data-grid/src/HeaderCell.tsx
Expand Up @@ -50,7 +50,7 @@ export default class HeaderCell extends React.Component<Props> {
event.preventDefault();
window.addEventListener('mousemove', onMouseMove);
window.addEventListener('mouseup', onMouseUp);
}
};

private onTouchStart = (event: React.TouchEvent) => {
const touch = event.changedTouches[0];
Expand Down Expand Up @@ -86,7 +86,7 @@ export default class HeaderCell extends React.Component<Props> {

window.addEventListener('touchmove', onTouchMove);
window.addEventListener('touchend', onTouchEnd);
}
};

private onResize(x: number) {
const { onResize } = this.props;
Expand Down
Expand Up @@ -243,7 +243,7 @@ export default class EditorContainer extends React.Component<Props, State> {
const inputNode = this.getInputNode();
return inputNode instanceof HTMLInputElement
&& inputNode.selectionStart === inputNode.value.length;
}
};

handleRightClick = (e: React.MouseEvent<HTMLDivElement>) => {
e.stopPropagation();
Expand Down
2 changes: 1 addition & 1 deletion packages/react-data-grid/src/masks/InteractionMasks.tsx
Expand Up @@ -588,7 +588,7 @@ export default class InteractionMasks extends React.Component<Props, State> {
}
return null;
});
}
};

handleDragEnd = () => {
const { draggedPosition } = this.state;
Expand Down

0 comments on commit a00aa08

Please sign in to comment.