- comment-format
- curly
- eofline
- import-spacing
- indent
- max-line-length
- no-trailing-whitespace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rules = config.module.rules; | |
// File the rules from the build that builds all the TS files. The MainRule | |
const mainRule = rules.find((r) => { | |
// If not in prod mode, this IF will find the mainRule | |
if (r.loader) { | |
return ( | |
r && r.loader && r.loader.endsWith(angularLoaderFilename) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpack = require('webpack'); | |
module.exports = { | |
module: { | |
rules: [ | |
{ | |
test: /\.ts$/, | |
exclude: /node_modules|src/, | |
use: [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If [email protected]+ | |
{ | |
"extends": [ | |
"tslint:latest", | |
"tslint-plugin-prettier" | |
], | |
"rules": { | |
"prettier": true | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"extends": [ | |
"tslint:latest", | |
"tslint-config-prettier", | |
], | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The values provided below are the defaults. | |
// If you don't specify one of these properties, | |
// the default value will be applied. | |
module.exports = { | |
printWidth: 80, | |
tabWidth: 2, | |
useTabs: true, | |
semi: true, | |
singleQuote: false, | |
trailingComma: 'none', // other options `es5` or `all` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class FooClass{ | |
constructor( | |
private fb: FirebaseApp, | |
private fs: AngularFirestore, | |
){ | |
const a = fb.firestore(); | |
const b = this.fs; | |
// Are `a` and `b` pointing at the same thing? | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
path: 'team/:id', | |
loadChildren: './team/team.module#TeamModule' | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpackconfig = { | |
module:{ | |
rules: [ | |
{ | |
test: /\.ts$/, | |
use: [ | |
{ | |
loader: '@ngtools/webpack' | |
} | |
] |
NewerOlder