codeclimate config

This commit is contained in:
Noah Santschi-Cooney 2018-06-21 13:19:46 +01:00
parent 767b483283
commit daa9978eaf
6 changed files with 8 additions and 46 deletions

5
.codeclimate.yml Normal file
View file

@ -0,0 +1,5 @@
version: "2"
plugins:
tslint:
enabled: true
config: tslint.json

View file

@ -15,7 +15,7 @@
"scripts": {
"update-vscode": "node ./node_modules/vscode/bin/install",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint": "tslint -c tslint.json 'src/**/*.ts'",
"lint": "tslint -c ../tslint.json 'src/**/*.ts'",
"compile": "tsc -p ./"
},
"dependencies": {

View file

@ -1,43 +0,0 @@
{
"defaultSeverity": "error",
"extends": ["tslint:recommended"],
"rules": {
"quotemark": [true, "single"],
"comment-format": false,
"semicolon": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"interface-name": false,
"indent": [true, "spaces", 2],
"arrow-parens": false,
"max-classes-per-file": false,
"no-console": false,
"object-literal-key-quotes": false,
"eofline": false,
"member-ordering": false,
"trailing-comma": false,
"no-var-requires": false,
"max-line-length": {
"severity": "warning",
"options": [170]
},
"radix": false,
"no-empty": false,
"prefer-const": {
"severity": "warning"
},
"curly": [true, "ignore-same-line"],
"whitespace": [
true,
"check-decl",
"check-operator",
"check-module",
"check-rest-spread",
"check-type",
"check-typecast",
"check-type-operator",
"check-preblock",
"check-branch"
]
}
}

View file

@ -71,7 +71,7 @@
"compile:server": "tsc -p ./server/tsconfig.json",
"watch:client": "tsc -w -p ./client/tsconfig.json",
"watch:server": "tsc -w -p ./server/tsconfig.json",
"lint": "cd server && npm run lint && cd ../client && npm run lint",
"lint": "tslint -c tslint.json 'server/src/**/*.ts' && tslint -c tslint.json 'client/src/**/*.ts'",
"fix": "tslint -c server/tslint.json --fix server/src/**/*.ts && tslint -c client/tslint.json --fix client/src/**/*.ts"
},
"devDependencies": {

View file

@ -18,6 +18,6 @@
"installServer": "installServerIntoExtension ../client ./package.json ./tsconfig.json",
"compile": "installServerIntoExtension ../client ./package.json ./tsconfig.json && tsc -p .",
"watch": "installServerIntoExtension ../client ./package.json ./tsconfig.json && tsc -w -p .",
"lint": "tslint -c tslint.json 'src/**/*.ts'"
"lint": "tslint -c ../tslint.json 'src/**/*.ts'"
}
}