Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Commit

Permalink
Add quotemark rule to tslint.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Apr 22, 2018
1 parent 124db19 commit 74e1301
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kernels/backend_webgl.ts
Expand Up @@ -55,7 +55,7 @@ import {Pool2DProgram} from './webgl/pool_gpu';
import {ReduceProgram} from './webgl/reduce_gpu';
import {ResizeBilinearProgram} from './webgl/resize_bilinear_gpu';
// tslint:disable-next-line:max-line-length
import {ResizeNearestNeighborProgram} from "./webgl/resize_nearest_neighbor_gpu";
import {ResizeNearestNeighborProgram} from './webgl/resize_nearest_neighbor_gpu';
import {ReverseProgram} from './webgl/reverse_gpu';
import {SliceProgram} from './webgl/slice_gpu';
import {TextureData, TextureType} from './webgl/tex_util';
Expand Down
2 changes: 1 addition & 1 deletion src/ops/unary_ops_test.ts
Expand Up @@ -2447,7 +2447,7 @@ describeWithFlags('erf', ALL_ENVS, () => {
});

it('scalar in int32', () => {
const a = tf.scalar(1, "int32");
const a = tf.scalar(1, 'int32');
const result = tf.erf(a);
const expected = [0.8427008];
expectArraysClose(result, expected);
Expand Down
1 change: 1 addition & 0 deletions tslint.json
Expand Up @@ -43,6 +43,7 @@
"object-literal-shorthand": true,
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"prefer-const": true,
"quotemark": [true, "single"],
"radix": true,
"restrict-plus-operands": true,
"semicolon": [true, "always", "ignore-bound-class-methods"],
Expand Down

0 comments on commit 74e1301

Please sign in to comment.