From 9936a95a5a888e1f8959d937fe9e7cccb8d67b8a Mon Sep 17 00:00:00 2001 From: Akambi Fagbohoun Date: Thu, 10 Jan 2019 11:56:18 -0500 Subject: [PATCH] fix(NONE): remove deprecation warnings --- index.js | 7 +++---- test/expected-output.txt | 12 ++++++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index 748bc47..9729536 100644 --- a/index.js +++ b/index.js @@ -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, @@ -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, @@ -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 @@ -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 diff --git a/test/expected-output.txt b/test/expected-output.txt index ed89327..e26e75d 100644 --- a/test/expected-output.txt +++ b/test/expected-output.txt @@ -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. \ No newline at end of file +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 \ No newline at end of file