{
    // TAB indent size, default is 2
    "tabWidth": 4.// Use TAB indentation, false by default
    "useTabs": false.// Use semicolons, true by default
    "semi": false.// Use single quotes, default double quotes false(invalid in JSX configuration)
    "singleQuote": false./ / end-of-line commas, none by default, the optional none | es5 | all
    // ES5 includes arrays and objects in ES5
    // all includes all options such as function objects
    "TrailingCooma": "all".// Default Spaces in objects are true (true: {foo: bar},false: {foo: bar})
    "bracketSpacing": true.// JSX tag closing position is false by default
    // false: <div
    // className="main"
    // style={ width="100vw" }
    // >
    // true: <div
    // className="main"
    // style={ width="100vw" } >
    "jsxBracketSameLine": false./ / arrow function parameters default get braces optional get | always
    // avoid parentheses when possible. For example, x => x
    // always always has parentheses
    "arrowParens": "avoid"
}
Copy the code