Skip to content

Commit

Permalink
[Fix] no-restricted-paths: fix an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriAt360 authored and ljharb committed Jun 1, 2022
1 parent 3767479 commit d3b0618
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -12,6 +12,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange

### Fixed
- [`order`]: move nested imports closer to main import entry ([#2396], thanks [@pri1311])
- [`no-restricted-paths`]: fix an error message ([#2466], thanks [@AdriAt360])

### Changed
- [Tests] `named`: Run all TypeScript test ([#2427], thanks [@ProdigySim])
Expand Down Expand Up @@ -990,6 +991,7 @@ for info on changes for earlier releases.

[`memo-parser`]: ./memo-parser/README.md

[#2466]: https://github.com/import-js/eslint-plugin-import/pull/2466
[#2440]: https://github.com/import-js/eslint-plugin-import/pull/2440
[#2427]: https://github.com/import-js/eslint-plugin-import/pull/2427
[#2417]: https://github.com/import-js/eslint-plugin-import/pull/2417
Expand Down Expand Up @@ -1493,6 +1495,7 @@ for info on changes for earlier releases.
[@aberezkin]: https://github.com/aberezkin
[@adamborowski]: https://github.com/adamborowski
[@adjerbetian]: https://github.com/adjerbetian
[@AdriAt360]: https://github.com/AdriAt360
[@ai]: https://github.com/ai
[@aladdin-add]: https://github.com/aladdin-add
[@alex-page]: https://github.com/alex-page
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-restricted-paths.js
Expand Up @@ -81,7 +81,7 @@ module.exports = {
function reportInvalidExceptionGlob(node) {
context.report({
node,
message: 'Restricted path exceptions must be glob patterns when`from` is a glob pattern',
message: 'Restricted path exceptions must be glob patterns when `from` is a glob pattern',
});
}

Expand Down
2 changes: 1 addition & 1 deletion tests/src/rules/no-restricted-paths.js
Expand Up @@ -255,7 +255,7 @@ ruleTester.run('no-restricted-paths', rule, {
} ],
} ],
errors: [ {
message: 'Restricted path exceptions must be glob patterns when`from` is a glob pattern',
message: 'Restricted path exceptions must be glob patterns when `from` is a glob pattern',
line: 1,
column: 15,
} ],
Expand Down

0 comments on commit d3b0618

Please sign in to comment.