Skip to content

Commit

Permalink
Merge pull request #15 from dicoding-dev/bugfix/eslint-9-support
Browse files Browse the repository at this point in the history
Update assistest to suitable for grading submission that use ESLint > 9
  • Loading branch information
dimasmds committed Apr 30, 2024
2 parents 3cd40d3 + 591bbc9 commit bb981fe
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 bb981fe

Please sign in to comment.