This repository was archived by the owner on Feb 14, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 },
3333 "homepage" : " https://github.com/valor-software/tslint-config-valorsoft#readme" ,
3434 "dependencies" : {
35- "codelyzer" : " 0.0.13 " ,
35+ "codelyzer" : " 0.0.14 " ,
3636 "tslint" : " 3.7.4"
3737 },
3838 "devDependencies" : {
Original file line number Diff line number Diff line change 55[ ![ devDependency Status] ( https://david-dm.org/valor-software/tslint-config-valorsoft/dev-status.svg )] ( https://david-dm.org/valor-software/tslint-config-valorsoft#info=devDependencies )
66
77## Philosophy
8- - contains all rules explicitely
8+ - contains all rules explicitly
99- almost all rules enabled
1010
1111## Install
1212``` sh
13- npm install tslint-config-valorsoft
13+ npm install tslint-config-valorsoft --save
1414```
1515
1616``` js
1717// tslint.json
1818{
19- " extends" : " ./node_modules/ tslint-config-valorsoft/tslint.json " ,
20- " rulesDirectory" : " ./node_modules/codelyzer/dist/src "
19+ " extends" : " tslint-config-valorsoft" ,
20+ " rulesDirectory" : " ./node_modules/codelyzer" ,
2121
2222 " rules" : {
2323 // your customization
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ const stripComments = require('strip-json-comments');
99const config = JSON . parse ( stripComments ( readFile ( './tslint.json' ) ) ) ;
1010const rulesInConfig = Object . keys ( config . rules ) ;
1111
12- const rulesInCodelyzer = fs . readdirSync ( './node_modules/codelyzer/src ' )
13- . filter ( fileName => / R u l e \. t s / . test ( fileName ) )
14- . map ( fileName => path . basename ( fileName , 'Rule.ts ' ) )
12+ const rulesInCodelyzer = fs . readdirSync ( './node_modules/codelyzer' )
13+ . filter ( fileName => / R u l e \. j s / . test ( fileName ) )
14+ . map ( fileName => path . basename ( fileName , 'Rule.js ' ) )
1515 . map ( fileName => changeCase . paramCase ( fileName ) ) ;
1616
1717const rulesInTslint = fs . readdirSync ( './node_modules/tslint/lib/rules' )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const config = require('../tslint.json');
1010const options = {
1111 formatter : 'verbose' ,
1212 configuration : config ,
13- rulesDirectory : './node_modules/codelyzer/dist/src '
13+ rulesDirectory : './node_modules/codelyzer'
1414} ;
1515const contents = fs . readFileSync ( path . resolve ( fileName ) , 'utf8' ) ;
1616const ll = new Linter ( fileName , contents , options ) ;
Original file line number Diff line number Diff line change 8787 "attribute-parameter-decorator" : true ,
8888 "input-property-directive" : true ,
8989 "output-property-directive" : true ,
90- "call-forward-ref" : true
90+ "call-forward-ref" : true ,
91+ "life-cycle-hook" : true ,
92+ "pipe-transform-interface" : true ,
93+ "pipe-naming" : [true , " kebab-case" ," " ]
9194 }
9295}
You can’t perform that action at this time.
0 commit comments