Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 8c561ef

Browse files
getting strictlyer
1 parent fab9a6d commit 8c561ef

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

src/components/HyperMediaControls/FormButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import TextAreaField from './TextAreaField';
77
import UuidField from './UuidField';
88

99
const mapper = {
10-
uuid: UuidField,
1110
textarea: TextAreaField,
11+
uuid: UuidField,
1212
};
1313

1414
const getValue = value => {
@@ -52,10 +52,10 @@ class FormButton extends PureComponent<
5252
if (actions[rel]) {
5353
actions[rel].request.next({
5454
body,
55-
link,
5655
headers: {
5756
authorization,
5857
},
58+
link,
5959
});
6060
}
6161
};

src/components/HyperMediaControls/HelpButton.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ interface DocumentationProps {
3535

3636
const Documentation = withStyles(theme => ({
3737
drawerPaper: {
38-
width: '45%',
3938
padding: theme.spacing.unit * 2,
39+
width: '45%',
4040
},
4141
}))(
4242
({
@@ -89,29 +89,29 @@ class HelpButton extends PureComponent<HelpButtonProps, HelpButtonState> {
8989
...getCurie(rel, curies),
9090
});
9191
state = {
92-
open: false,
93-
href: '',
94-
type: '',
92+
curies: [],
9593
disabled: true,
9694
documentation: '',
97-
curies: [],
95+
href: '',
96+
open: false,
97+
type: '',
9898
};
9999

100100
_handleOnClick = async () => {
101101
const { authorization } = this.props;
102102
const { href, type } = this.state;
103103
const { body: documentation } = await http.get({
104-
link: { href, type },
105104
headers: { authorization },
105+
link: { href, type },
106106
});
107107

108108
this.setState({
109109
...this.state,
110-
open: true,
111110
documentation:
112111
typeof documentation === 'string'
113112
? documentation
114113
: JSON.stringify(documentation),
114+
open: true,
115115
});
116116
};
117117

src/components/Hyperlink.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ const color = theme.palette.action.active;
99

1010
const styles = {
1111
hyperlink: {
12-
color,
13-
'&:hover': {
12+
'&:active': {
1413
color,
1514
},
16-
'&:active': {
15+
'&:hover': {
1716
color,
1817
},
1918
'&:visited': {
2019
color,
2120
},
21+
color,
2222
},
2323
};
2424

src/stream-store/rels.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* tslint:disable:object-literal-sort-keys */
12
const rels: { [rel: string]: string } = {
23
self: 'self',
34
first: 'first',

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"node_modules",
2828
"build",
2929
"scripts",
30-
"webpack",
30+
"webpack"
3131
],
3232
"types": [
3333
"typePatches"

tslint.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
"rules": {
77
"interface-name": [false, "always-prefix"],
88
"member-access": false,
9-
"variable-name": [true, "check-format", "allow-leading-underscore"]
9+
"variable-name": [true, "check-format", "allow-leading-underscore", "allow-pascal-case"],
10+
"no-submodule-imports": false
1011
},
11-
"defaultSeverity": "warning",
12+
"defaultSeverity": "error",
1213
"linterOptions": {
1314
"exclude": [
1415
"config/**/*.js",
15-
"node_modules/**/*.ts"
16+
"node_modules/**/*.ts",
17+
"./**/*.js"
1618
]
1719
}
1820
}

0 commit comments

Comments
 (0)