Skip to content

Commit c766e63

Browse files
author
Ricardo Cantu
committed
Support default tslint rules
1 parent 82dba5e commit c766e63

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

snippets/snippets.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"body": [
55
"import * as React from 'react';",
66
"",
7-
"export interface ${1:App}Props {",
7+
"export interface ${1:IApp}Props {",
88
"}",
99
"",
1010
"export default class ${1:} extends React.Component<${1:}Props, any> {",
11-
" render() {",
11+
" public render() {",
1212
" return (",
1313
" <div>",
1414
" ${2:}",
@@ -25,10 +25,10 @@
2525
"body": [
2626
"import * as React from 'react';",
2727
"",
28-
"export interface ${1:App}Props {",
28+
"export interface ${1:IApp}Props {",
2929
"}",
3030
"",
31-
"export interface ${1:App}State {",
31+
"export interface ${1:IApp}State {",
3232
"}",
3333
"",
3434
"export default class ${1:} extends React.Component<${1:}Props, ${1:}State> {",
@@ -39,7 +39,7 @@
3939
" }",
4040
" }",
4141
"",
42-
" render() {",
42+
" public render() {",
4343
" return (",
4444
" <div>",
4545
" ${2:}",
@@ -54,11 +54,11 @@
5454
"React Component without import and export": {
5555
"prefix": "tsrcjc",
5656
"body": [
57-
"export interface ${1:App}Props {",
57+
"export interface ${1:IApp}Props {",
5858
"}",
5959
"",
6060
"class ${1:} extends React.Component<${1:}Props, any> {",
61-
" render() {",
61+
" public render() {",
6262
" return (",
6363
" <div>",
6464
" ${2:}",
@@ -75,11 +75,11 @@
7575
"body": [
7676
"import * as React from 'react';",
7777
"",
78-
"export interface ${1:App}Props {",
78+
"export interface ${1:IApp}Props {",
7979
"}",
8080
"",
8181
"export default class ${1:} extends React.PureComponent<${1:}Props, any> {",
82-
" render() {",
82+
" public render() {",
8383
" return (",
8484
" <div>",
8585
" ${2:}",
@@ -94,11 +94,11 @@
9494
"React PureComponent without import and export": {
9595
"prefix": "tsrpcjc",
9696
"body": [
97-
"export interface ${1:App}Props {",
97+
"export interface ${1:IApp}Props {",
9898
"}",
9999
"",
100100
"class ${1:} extends React.PureComponent<${1:}Props, any> {",
101-
" render() {",
101+
" public render() {",
102102
" return (",
103103
" <div>",
104104
" ${2:}",
@@ -115,7 +115,7 @@
115115
"body": [
116116
"import * as React from 'react';",
117117
"",
118-
"export interface ${1:App}Props {",
118+
"export interface ${1:IApp}Props {",
119119
"}",
120120
"",
121121
"export function ${1:} (props: ${1:}Props) {",
@@ -134,7 +134,7 @@
134134
"body": [
135135
"import * as React from 'react';",
136136
"",
137-
"interface ${1:App}Props {$2",
137+
"interface ${1:IApp}Props {$2",
138138
"}",
139139
"",
140140
"const $1: React.SFC<$1Props> = (props) => {",
@@ -167,7 +167,7 @@
167167
"render": {
168168
"prefix": "ren",
169169
"body": [
170-
"render() {",
170+
"public render() {",
171171
" return (",
172172
" ${1:}",
173173
" );",
@@ -258,11 +258,11 @@
258258
"import * as React from 'react';",
259259
"import { connect } from 'react-redux'",
260260
"",
261-
"export interface ${1:App}Props {",
261+
"export interface ${1:IApp}Props {",
262262
"}",
263263
"",
264264
"class ${1:} extends React.Component<${1:}Props, any> {",
265-
" render() {",
265+
" pubic render() {",
266266
" return (",
267267
" <div>",
268268
" ${2:}",

0 commit comments

Comments
 (0)