Skip to content

Commit

Permalink
ignore eslint.config from checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasmds committed Apr 30, 2024
1 parent 3cd40d3 commit 591bbc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/eslint-checker/eslint-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class EslintChecker {

try {
//check eslint config available or not
execSync('npx eslint ./', {
execSync('npx eslint ./ --ignore-pattern \'eslint.config.*\'', {
cwd: submissionProject.packageJsonPath, stdio: "pipe"
})
const result = execSync('npx eslint ./ --rule \'linebreak-style:off\'', {
const result = execSync('npx eslint ./ --rule \'linebreak-style:off\' --ignore-pattern \'eslint.config.*\'', {
cwd: submissionProject.packageJsonPath,
stdio: "pipe"
})
Expand Down

0 comments on commit 591bbc9

Please sign in to comment.