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:
commit
fe5967c84e
16 changed files with 450 additions and 387 deletions
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"extends": [
|
||||
"../.eslintrc"
|
||||
],
|
||||
|
||||
"rules": {
|
||||
"import/no-unresolved": ["error", { "ignore": [".*/build/image_decoders/.*"] }],
|
||||
},
|
||||
}
|
|
@ -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).",
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"extends": [
|
||||
"../.eslintrc"
|
||||
],
|
||||
|
||||
"rules": {
|
||||
// Plugins
|
||||
"import/no-unresolved": ["error", { "ignore": ["pdfjs/"] }],
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue