Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 450 Bytes

File metadata and controls

34 lines (25 loc) · 450 Bytes
sidebarDepth categories tags
0
TypeScript
TSLint
TypeScript

quotemark

必须使用单引号,JSX 属性必须用双引号。

  • 本规范的默认配置

"quotemark": [true, "single", "jsx-double"]

const foo = "foo";
const jsx = <foo id='foo' />
const foo = 'foo';
const jsx = <foo id="foo" />;