forked from request/request-promise-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps-dev): bump eslint from 8.57.1 to 9.19.0 (#20)
* chore(deps-dev): bump eslint from 8.57.1 to 9.19.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.1 to 9.19.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.1...v9.19.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Commit the new config and remove the old one $ npx @eslint/migrate-config .eslintrc.json * eslint.config.mjs: add mocha globals to properly lint the test suites * eslint.config.mjs: use ecma version 2020 * Add the "lint:fix" npm command * Remove the "use script" commands --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: macbre <[email protected]>
- Loading branch information
1 parent
bec9513
commit 6d1f7ac
Showing
11 changed files
with
436 additions
and
571 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
'use strict'; | ||
|
||
module.exports = require('request-promise-core/errors'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
import globals from 'globals'; | ||
|
||
// https://eslint.org/docs/latest/use/configure/configuration-files#configuration-objects | ||
export default [{ | ||
plugins: {}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.mocha, // for tests | ||
Promise: false | ||
}, | ||
|
||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
|
||
parserOptions: { | ||
ecmaFeatures: {} | ||
} | ||
}, | ||
|
||
rules: { | ||
'no-cond-assign': 2, | ||
'no-console': 0, | ||
'no-constant-condition': 2, | ||
'no-control-regex': 2, | ||
'no-debugger': 2, | ||
'no-dupe-args': 2, | ||
'no-dupe-keys': 2, | ||
'no-duplicate-case': 2, | ||
|
||
'no-empty': [2, { | ||
allowEmptyCatch: false | ||
}], | ||
|
||
'no-empty-character-class': 2, | ||
'no-ex-assign': 2, | ||
'no-extra-boolean-cast': 2, | ||
'no-extra-parens': [2, 'all'], | ||
'no-extra-semi': 2, | ||
'no-func-assign': 2, | ||
'no-inner-declarations': [2, 'functions'], | ||
'no-invalid-regexp': 2, | ||
|
||
'no-irregular-whitespace': [2, { | ||
skipComments: false | ||
}], | ||
|
||
'no-negated-in-lhs': 2, | ||
'no-obj-calls': 2, | ||
'no-prototype-builtins': 2, | ||
'no-regex-spaces': 2, | ||
'no-sparse-arrays': 2, | ||
'no-unexpected-multiline': 2, | ||
'no-unreachable': 2, | ||
'no-unsafe-finally': 2, | ||
'use-isnan': 2, | ||
'valid-jsdoc': 0, | ||
'valid-typeof': 2, | ||
'accessor-pairs': 2, | ||
curly: [2, 'multi-line'], | ||
'dot-location': [2, 'property'], | ||
eqeqeq: 2, | ||
'no-caller': 2, | ||
'no-empty-pattern': 0, | ||
'no-eval': 2, | ||
'no-extend-native': 2, | ||
'no-extra-bind': 2, | ||
'no-fallthrough': 2, | ||
'no-floating-decimal': 2, | ||
'no-implied-eval': 2, | ||
'no-iterator': 2, | ||
'no-labels': 2, | ||
'no-lone-blocks': 2, | ||
'no-magic-numbers': 0, | ||
'no-multi-spaces': 2, | ||
'no-multi-str': 2, | ||
'no-native-reassign': 2, | ||
'no-new': 2, | ||
'no-new-func': 2, | ||
'no-new-wrappers': 2, | ||
'no-octal': 2, | ||
'no-octal-escape': 2, | ||
'no-proto': 2, | ||
'no-redeclare': 2, | ||
'no-return-assign': [2, 'except-parens'], | ||
'no-self-assign': 2, | ||
'no-self-compare': 2, | ||
'no-sequences': 2, | ||
'no-throw-literal': 2, | ||
'no-unmodified-loop-condition': 2, | ||
'no-useless-call': 2, | ||
'no-useless-escape': 2, | ||
'no-with': 2, | ||
'wrap-iife': [2, 'inside'], | ||
yoda: 2, | ||
strict: [2, 'safe'], | ||
'init-declarations': [2, 'always'], | ||
'no-catch-shadow': 0, | ||
'no-delete-var': 2, | ||
'no-label-var': 2, | ||
'no-restricted-globals': 0, | ||
|
||
'no-shadow': [2, { | ||
builtinGlobals: false, | ||
hoist: 'all', | ||
allow: [] | ||
}], | ||
|
||
'no-shadow-restricted-names': 2, | ||
|
||
'no-undef': [2, { | ||
typeof: true | ||
}], | ||
|
||
'no-undef-init': 2, | ||
'no-undefined': 0, | ||
|
||
'no-unused-vars': [2, { | ||
vars: 'local', | ||
args: 'none', | ||
caughtErrors: 'none' | ||
}], | ||
|
||
'no-use-before-define': [2, { | ||
functions: false, | ||
classes: true | ||
}], | ||
|
||
'callback-return': 0, | ||
'global-require': 0, | ||
'handle-callback-err': [2, '^(err|error)$'], | ||
'no-mixed-requires': 0, | ||
'no-new-require': 2, | ||
'no-path-concat': 2, | ||
'no-process-env': 2, | ||
'no-process-exit': 2, | ||
'no-restricted-modules': 0, | ||
'no-sync': 2, | ||
'block-spacing': 2, | ||
|
||
'brace-style': [2, '1tbs', { | ||
allowSingleLine: true | ||
}], | ||
|
||
camelcase: [2, { | ||
properties: 'never' | ||
}], | ||
|
||
'comma-dangle': [2, 'never'], | ||
'comma-spacing': 2, | ||
'comma-style': 2, | ||
'eol-last': 2, | ||
|
||
indent: [2, 4, { | ||
SwitchCase: 1 | ||
}], | ||
|
||
'jsx-quotes': 0, | ||
'key-spacing': 2, | ||
'keyword-spacing': 2, | ||
'new-cap': 0, | ||
'new-parens': 2, | ||
'no-array-constructor': 2, | ||
'no-mixed-spaces-and-tabs': 2, | ||
|
||
'no-multiple-empty-lines': [2, { | ||
max: 2, | ||
maxBOF: 0, | ||
maxEOF: 1 | ||
}], | ||
|
||
'no-new-object': 2, | ||
|
||
'no-plusplus': [2, { | ||
allowForLoopAfterthoughts: false | ||
}], | ||
|
||
'no-spaced-func': 2, | ||
'no-trailing-spaces': 2, | ||
|
||
'no-unneeded-ternary': [2, { | ||
defaultAssignment: false | ||
}], | ||
|
||
'no-whitespace-before-property': 2, | ||
'one-var': 0, | ||
|
||
'operator-linebreak': [2, 'after', { | ||
overrides: { | ||
'?': 'before', | ||
':': 'before' | ||
} | ||
}], | ||
|
||
'padded-blocks': 0, | ||
quotes: [2, 'single', 'avoid-escape'], | ||
semi: [2, 'always'], | ||
'semi-spacing': 2, | ||
'space-before-blocks': 2, | ||
|
||
'space-before-function-paren': [2, { | ||
anonymous: 'always', | ||
named: 'never' | ||
}], | ||
|
||
'space-in-parens': 0, | ||
'space-infix-ops': 0, | ||
'space-unary-ops': 2, | ||
'spaced-comment': 0 | ||
} | ||
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.