Skip to content
This repository was archived by the owner on Jan 20, 2020. It is now read-only.

Commit 9f1f627

Browse files
author
Luciano Nooijen
committed
Configured TSLint
1 parent 6e583a4 commit 9f1f627

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"ts-jest": "^23.10.4",
8080
"tslint": "^5.11.0",
8181
"tslint-config-airbnb": "^5.11.1",
82+
"tslint-eslint-rules": "^5.4.0",
8283
"typescript-eslint-parser": "^21.0.1"
8384
},
8485
"env": {

tests/config/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import useTestDatabase from './database-config';
2-
import useEnvVars from './load-env-file';
1+
import useTestDatabase from './use-test-database';
2+
import useEnvVars from './use-env-vars';
33

44
export {
55
useTestDatabase,
File renamed without changes.
File renamed without changes.

tests/knexfile-generator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable function-paren-newline */
22

3-
import useEnvVars from './config/load-env-file';
3+
import { useEnvVars } from './config/index';
44

55
const generateKnexConfig = require('../database/generate-knexfile');
66
const {

tslint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22
"extends": [
33
"tslint-config-airbnb"
44
],
5+
"rulesDirectory": [
6+
"node_modules/tslint-eslint-rules/dist/rules"
7+
],
58
"rules": {
9+
"arrow-parens": false,
610
"no-console": [true, "log", "error"],
711
"no-empty": true,
812
"no-invalid-this": true,
913
"indent": [true, "spaces", 4],
1014
"prefer-object-spread": true,
15+
"ter-arrow-parens": [false, "as-needed"],
1116
"ter-indent": [true, 4],
1217
"triple-equals": true
1318
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy