Skip to content

Commit

Permalink
Merge pull request #6 from SSENSE/fix/NONE_remove_depreciation_warning
Browse files Browse the repository at this point in the history
fix(NONE): remove deprecation warnings
  • Loading branch information
akambi authored Jan 10, 2019
2 parents 9845988 + 9936a95 commit 983af35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
'no-constant-condition': true,
'no-control-regex': true,
'no-debugger': true,
'no-duplicate-case': true,
'no-duplicate-switch-case': true,
'no-duplicate-super': true,
'no-duplicate-variable': true,
'no-empty': true,
Expand All @@ -68,7 +68,7 @@ module.exports = {
'no-reference-import': true,
'no-regex-spaces': true,
'no-sparse-arrays': true,
'no-stateless-class': true,
'no-unnecessary-class': true,
'no-string-literal': true,
'no-string-throw': true,
'no-unnecessary-bind': true,
Expand All @@ -86,7 +86,6 @@ module.exports = {
'triple-equals': [true, 'allow-null-check'],
'use-isnan': true,
'use-named-parameter': true,
'valid-typeof': true,

/**
* Code Clarity. The following rules should be turned on because they make the code
Expand Down Expand Up @@ -135,7 +134,7 @@ module.exports = {
'no-useless-files': true,
'no-var-keyword': true,
'no-var-requires': true,
'no-var-self': true,
'no-this-assignment': true,
'object-literal-sort-keys': false, // turn object-literal-sort-keys off and sort keys in a meaningful manner
'one-variable-per-declaration': true,
'only-arrow-functions': false, // there are many valid reasons to declare a function
Expand Down
12 changes: 6 additions & 6 deletions test/expected-output.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ERROR: test_app.ts[1, 3]: comment must start with a space
ERROR: test_app.ts[3, 5]: The exported module or identifier name must match the file name. Found: test_app.ts and Foo
ERROR: test_app.ts[4, 16]: Method name does not match /^[a-z][\w\d]+$/: Bar
ERROR: test_app.ts[14, 2]: statements are not aligned
ERROR: test_app.ts[2, 1]: 'namespace' and 'module' are disallowed
ERROR: test_app.ts[14, 1]: Expected indentation of 0 spaces but found 1.
ERROR: test_app.ts:1:3 - comment must start with a space
ERROR: test_app.ts:2:1 - 'namespace' and 'module' are disallowed
ERROR: test_app.ts:3:5 - The exported module or identifier name must match the file name. Found: test_app.ts and Foo
ERROR: test_app.ts:4:16 - Method name does not match /^[a-z][\w\d]+$/: Bar
ERROR: test_app.ts:14:1 - Expected indentation of 0 spaces but found 1.
ERROR: test_app.ts:14:2 - statements are not aligned

0 comments on commit 983af35

Please sign in to comment.