diff --git a/rules/prevent-abbreviations.js b/rules/prevent-abbreviations.js index 09854e8e66..4df4591d97 100644 --- a/rules/prevent-abbreviations.js +++ b/rules/prevent-abbreviations.js @@ -141,7 +141,8 @@ const defaultReplacements = { document: true }, docs: { - documents: true + documents: true, + documentation: true }, elem: { element: true diff --git a/test/prevent-abbreviations.js b/test/prevent-abbreviations.js index 218dce1718..88698db982 100644 --- a/test/prevent-abbreviations.js +++ b/test/prevent-abbreviations.js @@ -971,14 +971,14 @@ ruleTester.run('prevent-abbreviations', rule, { { code: outdent` function unicorn(unicorn) { - const {docs = {}} = unicorn; - return docs; + const {prop = {}} = unicorn; + return property; } `, output: outdent` function unicorn(unicorn) { - const {docs: documents = {}} = unicorn; - return documents; + const {prop: property = {}} = unicorn; + return property; } `, errors: createErrors()