Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

Setup CLI

The setup CLI automatically sets up a prettier and typescript config.

API

Short flagLong flagDefaultDescription
-d--dirCurrent DirectoryWhere the directory and package.json is located
-t--templateSee belowPrettier config template located on your system
None--typescriptNoneIf you want to use Typescript, it installs typescript if you didn't before and adds the default config
None--typescript-templateNoneLocation of your tsconfig.json template, same as --typescript flag, just uses your custom template

Default Values

Prettier config:

{
"prettier": {
"tabWidth": 4,
"printWidth": 80,
"semi": true,
"quoteProps": "consistent",
"bracketSpacing": true,
"bracketSameLine": true,
"singleQuote": true,
"jsxSingleQuote": true,
"jsxBracketSameLine": true,
"arrowParens": "avoid"
}
}

tsconfig.json

{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"jsx": "react-jsx"
},
"include": [
"./src/"
]
}

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages