Skip to content

Commit

Permalink
Disable ESLint rule for this directory
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Sep 13, 2022
1 parent f7fd5c7 commit c45541c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ module.exports = {
},
{
files: ["src/language-js/**/*.js"],
ignorePatterns: ["!src/language-js/parse/postprocess/*.js"],
rules: {
"prettier-internal-rules/no-node-comments": [
"error",
Expand All @@ -329,7 +330,6 @@ module.exports = {
functions: ["hasComment", "getComments"],
},
"src/language-js/pragma.js",
"src/language-js/parse/postprocess/*.js",
"src/language-js/parse/babel.js",
"src/language-js/parse/meriyah.js",
"src/language-js/parse/json.js",
Expand Down
2 changes: 0 additions & 2 deletions src/language-js/parse/postprocess/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ function postprocess(ast, options) {
}
});

/* eslint-disable prettier-internal-rules/no-node-comments */
if (isNonEmptyArray(ast.comments)) {
let followingComment = getLast(ast.comments);
for (let i = ast.comments.length - 2; i >= 0; i--) {
Expand All @@ -176,7 +175,6 @@ function postprocess(ast, options) {
followingComment = comment;
}
}
/* eslint-enable prettier-internal-rules/no-node-comments */

return ast;

Expand Down

0 comments on commit c45541c

Please sign in to comment.