diff --git a/package.json b/package.json index 567d675..40b85d4 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "scripts": { "start": "tsc -w", - "test": "tsc && tslint -c tslint.json '*.ts' && ava --verbose" + "test": "tsc && tslint -c tslint.yaml '*.ts' && ava --verbose" }, "repository": { "type": "git", diff --git a/tslint.json b/tslint.json deleted file mode 100644 index 9414a58..0000000 --- a/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "defaultSeverity": "error", - "extends": [ - "tslint:recommended" - ], - "jsRules": {}, - "rules": { - "no-any": true, - // TODO perhaps we *should* use the 'I' prefix? - "interface-name": [true, "never-prefix"], - "no-unused-expression": [true, "allow-fast-null-checks"] - }, - "rulesDirectory": [] -} \ No newline at end of file diff --git a/tslint.yaml b/tslint.yaml new file mode 100644 index 0000000..ceb00d1 --- /dev/null +++ b/tslint.yaml @@ -0,0 +1,10 @@ +defaultSeverity: error +extends: + - 'tslint:recommended' +jsRules: +rules: + no-any: true + # TODO perhaps we *should* use the 'I' prefix? + interface-name: [true, never-prefix] + no-unused-expression: [true, allow-fast-null-checks] +rulesDirectory: []