mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
Remove eslint-plugin-prefer-object-spread dependency (#162439)
Remove the `eslint-plugin-prefer-object-spread` dependency as the `prefer-object-spread` rule has been part of ESLint since v5
This commit is contained in:
parent
08c8b3d7ff
commit
a79e9c7374
6 changed files with 5 additions and 13 deletions
|
@ -639,7 +639,7 @@ module.exports = {
|
||||||
files: ['scripts/**/*.js', 'src/setup_node_env/**/*.js'],
|
files: ['scripts/**/*.js', 'src/setup_node_env/**/*.js'],
|
||||||
rules: {
|
rules: {
|
||||||
'import/no-commonjs': 'off',
|
'import/no-commonjs': 'off',
|
||||||
'prefer-object-spread/prefer-object-spread': 'off',
|
'prefer-object-spread': 'off',
|
||||||
'no-var': 'off',
|
'no-var': 'off',
|
||||||
'prefer-const': 'off',
|
'prefer-const': 'off',
|
||||||
'prefer-destructuring': 'off',
|
'prefer-destructuring': 'off',
|
||||||
|
@ -672,7 +672,7 @@ module.exports = {
|
||||||
'**/browser_exec_scripts/**/*.js',
|
'**/browser_exec_scripts/**/*.js',
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
'prefer-object-spread/prefer-object-spread': 'off',
|
'prefer-object-spread': 'off',
|
||||||
'no-var': 'off',
|
'no-var': 'off',
|
||||||
'prefer-const': 'off',
|
'prefer-const': 'off',
|
||||||
'prefer-destructuring': 'off',
|
'prefer-destructuring': 'off',
|
||||||
|
@ -708,7 +708,7 @@ module.exports = {
|
||||||
excludedFiles: ['**/integration_tests/**/*'],
|
excludedFiles: ['**/integration_tests/**/*'],
|
||||||
rules: {
|
rules: {
|
||||||
'import/no-commonjs': 'off',
|
'import/no-commonjs': 'off',
|
||||||
'prefer-object-spread/prefer-object-spread': 'off',
|
'prefer-object-spread': 'off',
|
||||||
'no-restricted-syntax': [
|
'no-restricted-syntax': [
|
||||||
'error',
|
'error',
|
||||||
'ImportDeclaration',
|
'ImportDeclaration',
|
||||||
|
|
|
@ -1423,7 +1423,6 @@
|
||||||
"eslint-plugin-mocha": "^10.0.5",
|
"eslint-plugin-mocha": "^10.0.5",
|
||||||
"eslint-plugin-no-unsanitized": "^3.1.5",
|
"eslint-plugin-no-unsanitized": "^3.1.5",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-prefer-object-spread": "^1.2.1",
|
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"eslint-plugin-react": "^7.26.1",
|
"eslint-plugin-react": "^7.26.1",
|
||||||
"eslint-plugin-react-hooks": "^4.2.0",
|
"eslint-plugin-react-hooks": "^4.2.0",
|
||||||
|
|
|
@ -15,7 +15,6 @@ module.exports = {
|
||||||
'@babel',
|
'@babel',
|
||||||
'import',
|
'import',
|
||||||
'no-unsanitized',
|
'no-unsanitized',
|
||||||
'prefer-object-spread',
|
|
||||||
],
|
],
|
||||||
|
|
||||||
env: {
|
env: {
|
||||||
|
@ -94,7 +93,7 @@ module.exports = {
|
||||||
'import/no-duplicates': 'error',
|
'import/no-duplicates': 'error',
|
||||||
'import/no-dynamic-require': 'error',
|
'import/no-dynamic-require': 'error',
|
||||||
|
|
||||||
'prefer-object-spread/prefer-object-spread': 'error',
|
'prefer-object-spread': 'error',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -20,7 +20,6 @@ module.exports = {
|
||||||
'@typescript-eslint',
|
'@typescript-eslint',
|
||||||
'ban',
|
'ban',
|
||||||
'import',
|
'import',
|
||||||
'prefer-object-spread',
|
|
||||||
'eslint-comments'
|
'eslint-comments'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ function evaluate(expression, scope = {}, injectedFunctions = {}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function interpret(node, scope, injectedFunctions) {
|
function interpret(node, scope, injectedFunctions) {
|
||||||
const functions = Object.assign({}, includedFunctions, injectedFunctions); // eslint-disable-line prefer-object-spread/prefer-object-spread
|
const functions = Object.assign({}, includedFunctions, injectedFunctions); // eslint-disable-line prefer-object-spread
|
||||||
return exec(node);
|
return exec(node);
|
||||||
|
|
||||||
function exec(node) {
|
function exec(node) {
|
||||||
|
|
|
@ -15380,11 +15380,6 @@ eslint-plugin-node@^11.1.0:
|
||||||
resolve "^1.10.1"
|
resolve "^1.10.1"
|
||||||
semver "^6.1.0"
|
semver "^6.1.0"
|
||||||
|
|
||||||
eslint-plugin-prefer-object-spread@^1.2.1:
|
|
||||||
version "1.2.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/eslint-plugin-prefer-object-spread/-/eslint-plugin-prefer-object-spread-1.2.1.tgz#27fb91853690cceb3ae6101d9c8aecc6a67a402c"
|
|
||||||
integrity sha1-J/uRhTaQzOs65hAdnIrsxqZ6QCw=
|
|
||||||
|
|
||||||
eslint-plugin-prettier@^4.0.0:
|
eslint-plugin-prettier@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz#8b99d1e4b8b24a762472b4567992023619cb98e0"
|
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz#8b99d1e4b8b24a762472b4567992023619cb98e0"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue