Add tslint and tslint-microsoft-contrib SDL rules with lint script (#170)
This commit is contained in:
Родитель
8ee8e4e691
Коммит
ab56dbc3fd
|
@ -2288,6 +2288,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"tslint-microsoft-contrib": {
|
||||
"version": "5.0.3",
|
||||
"resolved": "http://bbnpm.azurewebsites.net/tslint-microsoft-contrib/-/tslint-microsoft-contrib-5.0.3.tgz",
|
||||
"integrity": "sha512-5AnfTGlfpUzpRHLmoojPBKFTTmbjnwgdaTHMdllausa4GBPya5u36i9ddrTX4PhetGZvd4JUYIpAmgHqVnsctg==",
|
||||
"requires": {
|
||||
"tsutils": "2.21.1"
|
||||
}
|
||||
},
|
||||
"tsutils": {
|
||||
"version": "2.21.1",
|
||||
"resolved": "http://bbnpm.azurewebsites.net/tsutils/-/tsutils-2.21.1.tgz",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"main": "./lib/app.js",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"lint": "tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
|
||||
"prestart": "npm run build",
|
||||
"start": "node ./lib/app.js",
|
||||
"startnobuild": "node ./lib/app.js",
|
||||
|
@ -29,8 +30,7 @@
|
|||
"botbuilder": "4.0.0-m4.1",
|
||||
"convict": "^4.0.2",
|
||||
"dotenv": "^4.0.0",
|
||||
"restify": "^6.3.2",
|
||||
"tslint": "^5.8.0"
|
||||
"restify": "^6.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/convict": "^4.1.1",
|
||||
|
@ -38,6 +38,8 @@
|
|||
"@types/express": "^4.11.0",
|
||||
"@types/restify": "^5.0.7",
|
||||
"execa": "^0.9.0",
|
||||
"tslint": "^5.8.0",
|
||||
"tslint-microsoft-contrib": "^5.0.3",
|
||||
"typescript": "^2.6.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"defaultSeverity": "error",
|
||||
"extends": [
|
||||
],
|
||||
"jsRules": {},
|
||||
"rules": {
|
||||
"no-banned-terms": true,
|
||||
"no-delete-expression": true,
|
||||
"no-document-domain": true,
|
||||
"no-disable-auto-sanitization": true,
|
||||
"no-duplicate-parameter-names": true,
|
||||
"no-exec-script": true,
|
||||
"no-function-constructor-with-string-args": true,
|
||||
"no-octal-literal": true,
|
||||
"no-reserved-keywords": true,
|
||||
"no-string-based-set-immediate": true,
|
||||
"no-string-based-set-interval": true,
|
||||
"no-string-based-set-timeout": true,
|
||||
"no-eval": true
|
||||
},
|
||||
"rulesDirectory": [
|
||||
"node_modules/tslint-microsoft-contrib"
|
||||
]
|
||||
}
|
Загрузка…
Ссылка в новой задаче