Skip to content

Commit 31cb9cd

Browse files
committed
build: update rule for trim methods to reference both general and base packages
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 25b1267 commit 31cb9cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

etc/eslint/rules/style.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,21 +1260,21 @@ rules[ 'no-restricted-syntax' ] = [ 'error',
12601260
// String.prototype.trimStart / trimLeft
12611261
{
12621262
'selector': 'CallExpression[callee.property.name="trimStart"]',
1263-
'message': 'Use `@stdlib/string/base/left-trim` instead of String.prototype.trimStart.'
1263+
'message': 'Use `@stdlib/string/left-trim` or `@stdlib/string/base/left-trim` instead of String.prototype.trimStart.'
12641264
},
12651265
{
12661266
'selector': 'CallExpression[callee.property.name="trimLeft"]',
1267-
'message': 'Use `@stdlib/string/base/left-trim` instead of String.prototype.trimLeft.'
1267+
'message': 'Use `@stdlib/string/left-trim` or `@stdlib/string/base/left-trim` instead of String.prototype.trimLeft.'
12681268
},
12691269

12701270
// String.prototype.trimEnd / trimRight
12711271
{
12721272
'selector': 'CallExpression[callee.property.name="trimEnd"]',
1273-
'message': 'Use `@stdlib/string/base/right-trim` instead of String.prototype.trimEnd.'
1273+
'message': 'Use `@stdlib/string/right-trim` or `@stdlib/string/base/right-trim` instead of String.prototype.trimEnd.'
12741274
},
12751275
{
12761276
'selector': 'CallExpression[callee.property.name="trimRight"]',
1277-
'message': 'Use `@stdlib/string/base/right-trim` instead of String.prototype.trimRight.'
1277+
'message': 'Use `@stdlib/string/right-trim` or `@stdlib/string/base/right-trim` instead of String.prototype.trimRight.'
12781278
},
12791279

12801280
// Object.keys

0 commit comments

Comments
 (0)