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

Add quotemark rule to tslint. #975

Merged
merged 2 commits into from Apr 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -2448,7 +2448,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