Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

add encoding rule (#157) #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion samples/basic-setup/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"check-operator",
"check-separator",
"check-type"
]
],
"encoding": true
}
}
3 changes: 2 additions & 1 deletion samples/using-existing-tslint-output/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"check-operator",
"check-separator",
"check-type"
]
],
"encoding": true
}
}
6 changes: 6 additions & 0 deletions src/main/resources/tslint/tslint-rules.properties
Original file line number Diff line number Diff line change
Expand Up @@ -754,3 +754,9 @@ whitespace.name=Inappropriate whitespace between tokens
whitespace.severity=MINOR
whitespace.debtFunc=CONSTANT_ISSUE
whitespace.debtScalar=5min

encoding=true
encoding.name=Enforces UTF-8 file encoding
encoding.severity=MINOR
encoding.debtFunc=CONSTANT_ISSUE
encoding.debtScalar=1min
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void setUp() throws Exception {
"completed-docs",
"curly",
"cyclomatic-complexity",
"encoding",
"eofline",
"file-header",
"forin",
Expand Down