Style Guide for Zater Systems projects
npm install @zater-systems/style-guide!npm
Common style guide and linting rules for Zater Systems projects.
https://zater-systems.github.io/style-guide/
Install using NPM:
``bash`
npm install -D @zater-systems/style-guide typescript@~2.7.2 tslint tslint-angular codelyzer
Install using Yarn:
`bash`
yarn add -D @zater-systems/style-guide
Create a tslint.json file:
`json`
{
"extends": ["@zater-systems/style-guide/angular"],
"rules": {
"directive-selector": [true, "attribute", "zs", "camelCase"],
"component-selector": [true, "element", "zs", "kebab-case"]
}
}
Create a tsconfig.json file:
`json`
{
"extends": "./node_modules/@zater-systems/style-guide/typescript/tsconfig.json",
"compilerOptions": {}
}
Create a .prettierrc file:
`json`
{
"singleQuote": true,
"trailingComma": "all"
}
Create a tslint.json file:
`json`
{
"extends": ["@zater-systems/style-guide/typescript"]
}
Create a tsconfig.json file:
`json`
{
"extends": "./node_modules/@zater-systems/style-guide/typescript/tsconfig.json",
"compilerOptions": {}
}
Run yarn` to install packages.