Skip to content

Commit 8d1ef44

Browse files
committed
Change lint option
1 parent de64eb2 commit 8d1ef44

File tree

3 files changed

+15
-66
lines changed

3 files changed

+15
-66
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/public/javascripts/lib

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"private": true,
55
"scripts": {
66
"start": "ts-node ./bin/www.ts",
7-
"lint": "tslint -p . --fix",
8-
"fmt": "prettier '**/*.ts' --write",
9-
"fmt-verify": "prettier '**/*.ts' -l"
7+
"test": "yarn lint",
8+
"lint": "tslint -p . && prettier '**/*.{ts,js,json}' -l",
9+
"fmt": "tslint -p . --fix && prettier '**/*.{ts,js,json}' --write"
1010
},
1111
"author": "CodeChain Team <[email protected]>",
1212
"license": "Apache-2.0",

tslint.json

Lines changed: 10 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,16 @@
11
{
2+
"extends": ["tslint:recommended", "tslint-config-prettier"],
23
"rules": {
3-
"class-name": true,
4-
"comment-format": [
5-
true,
6-
"check-space"
7-
],
8-
"indent": [
9-
true,
10-
"spaces"
11-
],
12-
"linebreak-style": [
13-
true,
14-
"LF"
15-
],
16-
"object-literal-shorthand": true,
17-
"one-line": [
18-
true,
19-
"check-open-brace",
20-
"check-whitespace"
21-
],
22-
"no-var-keyword": true,
23-
"quotemark": [
24-
true,
25-
"double",
26-
"avoid-escape"
27-
],
28-
"semicolon": [
29-
true,
30-
"always",
31-
"ignore-bound-class-methods"
32-
],
33-
"whitespace": [
34-
true,
35-
"check-branch",
36-
"check-decl",
37-
"check-operator",
38-
"check-module",
39-
"check-separator",
40-
"check-type"
41-
],
42-
"typedef-whitespace": [
43-
true,
44-
{
45-
"call-signature": "nospace",
46-
"index-signature": "nospace",
47-
"parameter": "nospace",
48-
"property-declaration": "nospace",
49-
"variable-declaration": "nospace"
50-
}
51-
],
52-
"no-internal-module": true,
53-
"no-trailing-whitespace": true,
54-
"no-inferrable-types": true,
55-
"prefer-const": true,
56-
"triple-equals": [
57-
true,
58-
"allow-null-check",
59-
"allow-undefined-check"
60-
]
4+
"interface-name": false,
5+
"no-console": false,
6+
"object-literal-sort-keys": false,
7+
"no-var-requires": false
8+
},
9+
"jsRules": {
10+
"no-console": false,
11+
"object-literal-sort-keys": false
6112
},
6213
"linterOptions": {
63-
"exclude": [
64-
"dist/**/*.js",
65-
"node_modules/**/*.ts",
66-
"public/javascripts/lib/*.js"
67-
]
14+
"exclude": ["node_modules/**/*.ts", "public/javascripts/lib/*"]
6815
}
6916
}

0 commit comments

Comments
 (0)