diff --git a/lib/rules/no-deprecated-api.js b/lib/rules/no-deprecated-api.js index fed61214..8a6ea86b 100644 --- a/lib/rules/no-deprecated-api.js +++ b/lib/rules/no-deprecated-api.js @@ -90,7 +90,10 @@ const modules = { [READ]: { since: "10.0.0", replacedBy: null }, }, createCipher: { - [READ]: { since: "10.0.0", replacedBy: "'tls.createCipheriv()'" }, + [READ]: { + since: "10.0.0", + replacedBy: "'crypto.createCipheriv()'", + }, }, createCredentials: { [READ]: { @@ -99,7 +102,10 @@ const modules = { }, }, createDecipher: { - [READ]: { since: "10.0.0", replacedBy: "'tls.createDecipheriv()'" }, + [READ]: { + since: "10.0.0", + replacedBy: "'crypto.createDecipheriv()'", + }, }, fips: { [READ]: { diff --git a/tests/fixtures/no-missing/a.config.js b/tests/fixtures/no-missing/a.config.js index ed469db8..b436fe84 100644 --- a/tests/fixtures/no-missing/a.config.js +++ b/tests/fixtures/no-missing/a.config.js @@ -1,2 +1,3 @@ -"use strict"; -console.log("hello!"); +"use strict" + +console.log("hello!") diff --git a/tests/fixtures/no-missing/a.js b/tests/fixtures/no-missing/a.js index ed469db8..b436fe84 100644 --- a/tests/fixtures/no-missing/a.js +++ b/tests/fixtures/no-missing/a.js @@ -1,2 +1,3 @@ -"use strict"; -console.log("hello!"); +"use strict" + +console.log("hello!") diff --git a/tests/fixtures/no-missing/bar/main.js b/tests/fixtures/no-missing/bar/main.js index ed469db8..b436fe84 100644 --- a/tests/fixtures/no-missing/bar/main.js +++ b/tests/fixtures/no-missing/bar/main.js @@ -1,2 +1,3 @@ -"use strict"; -console.log("hello!"); +"use strict" + +console.log("hello!") diff --git a/tests/fixtures/no-missing/foo/main.js b/tests/fixtures/no-missing/foo/main.js index ed469db8..b436fe84 100644 --- a/tests/fixtures/no-missing/foo/main.js +++ b/tests/fixtures/no-missing/foo/main.js @@ -1,2 +1,3 @@ -"use strict"; -console.log("hello!"); +"use strict" + +console.log("hello!") diff --git a/tests/fixtures/no-missing/index.js b/tests/fixtures/no-missing/index.js index ed469db8..b436fe84 100644 --- a/tests/fixtures/no-missing/index.js +++ b/tests/fixtures/no-missing/index.js @@ -1,2 +1,3 @@ -"use strict"; -console.log("hello!"); +"use strict" + +console.log("hello!")