1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #19029 from nicolo-ribaudo/eslint-flat-config

Migrate to ESLint flat config
This commit is contained in:
Jonas Jenwald 2024-11-12 16:22:54 +01:00 committed by GitHub
commit fe5967c84e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 450 additions and 387 deletions

View file

@ -1,18 +0,0 @@
{
"plugins": ["jasmine"],
"extends": ["../.eslintrc", "plugin:jasmine/recommended"],
"env": {
"node": true,
"jasmine": true
},
"rules": {
"jasmine/new-line-before-expect": "off",
"jasmine/new-line-between-declarations": "off",
"jasmine/no-focused-tests": "error",
"jasmine/no-pending-tests": "off",
"jasmine/no-spec-dupes": ["error", "branch"],
"jasmine/no-suite-dupes": ["error", "branch"],
"jasmine/prefer-jasmine-matcher": "off",
"jasmine/prefer-toHaveBeenCalledWith": "off"
}
}

View file

@ -1,9 +0,0 @@
{
"extends": [
"../.eslintrc"
],
"rules": {
"import/no-unresolved": ["error", { "ignore": [".*/build/image_decoders/.*"] }],
},
}

View file

@ -1,14 +0,0 @@
{
"extends": [
"../.eslintrc"
],
"rules": {
"no-restricted-syntax": ["error",
{
"selector": "CallExpression[callee.name='waitForTimeout']",
"message": "`waitForTimeout` can cause intermittent failures and should not be used (see issue #17656 for replacements).",
},
],
},
}

View file

@ -1,10 +0,0 @@
{
"extends": [
"../.eslintrc"
],
"rules": {
// Plugins
"import/no-unresolved": ["error", { "ignore": ["pdfjs/"] }],
},
}