Skip to content

Commit 68fe74b

Browse files
committed
chore(tslint): set rules for tslint
1 parent fdcdfe8 commit 68fe74b

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

config/webpack.common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = function(options = {}) {
4242
test: /\.css/,
4343
loaders: [
4444
ExtractTextPlugin.extract({
45-
fallbackLoader: "style-loader",
45+
fallback: "style-loader",
4646
loader: 'css-loader'
4747
}),
4848
'to-string-loader',
@@ -54,7 +54,7 @@ module.exports = function(options = {}) {
5454
test: /\.scss$/,
5555
loaders: [
5656
ExtractTextPlugin.extract({
57-
fallbackLoader: 'style-loader',
57+
fallback: 'style-loader',
5858
loader: 'css-loader'
5959
}),
6060
'to-string-loader',

config/webpack.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function(options) {
1111
return webpackMerge(commonConfig({ env: ENV }), {
1212
devtool: 'cheap-module-source-map',
1313
devServer: {
14-
port: 9999,
14+
port: 3000,
1515
hot: options.HMR,
1616
stats: {
1717
colors: true,

tslint.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
1-
21
{
32
"rulesDirectory": [
43
"node_modules/vrsource-tslint-rules/rules",
54
"node_modules/tslint-eslint-rules/dist/rules"
65
],
76
"rules": {
87
//"file-header": [true, "Copyright (c) 2017 Knight Rider Consulting Inc and Alex Winter\\."],
9-
"no-console": [true, "log"],
8+
"no-console": [
9+
true,
10+
"log"
11+
],
1012
"no-duplicate-imports": true,
1113
"no-duplicate-variable": true,
1214
"no-jasmine-focus": true,
1315
"no-var-keyword": true,
14-
"require-internal-with-underscore": true,
15-
"semicolon": [true],
16-
"variable-name": [true, "ban-keywords"],
17-
"no-inner-declarations": [true, "function"]
16+
//"require-internal-with-underscore": true,
17+
"semicolon": [
18+
true
19+
],
20+
"variable-name": [
21+
true,
22+
"ban-keywords"
23+
],
24+
"no-inner-declarations": [
25+
true,
26+
"function"
27+
]
1828
}
1929
}

0 commit comments

Comments
 (0)