Skip to content

Commit

Permalink
Remove eslint-plugin-prefer-object-spread dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Watson committed Jul 24, 2023
1 parent 3eb77e6 commit 3e6dff1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ module.exports = {
files: ['scripts/**/*.js', 'src/setup_node_env/**/*.js'],
rules: {
'import/no-commonjs': 'off',
'prefer-object-spread/prefer-object-spread': 'off',
'prefer-object-spread': 'off',
'no-var': 'off',
'prefer-const': 'off',
'prefer-destructuring': 'off',
Expand Down Expand Up @@ -672,7 +672,7 @@ module.exports = {
'**/browser_exec_scripts/**/*.js',
],
rules: {
'prefer-object-spread/prefer-object-spread': 'off',
'prefer-object-spread': 'off',
'no-var': 'off',
'prefer-const': 'off',
'prefer-destructuring': 'off',
Expand Down Expand Up @@ -708,7 +708,7 @@ module.exports = {
excludedFiles: ['**/integration_tests/**/*'],
rules: {
'import/no-commonjs': 'off',
'prefer-object-spread/prefer-object-spread': 'off',
'prefer-object-spread': 'off',
'no-restricted-syntax': [
'error',
'ImportDeclaration',
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,6 @@
"eslint-plugin-mocha": "^10.0.5",
"eslint-plugin-no-unsanitized": "^3.1.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/kbn-eslint-config/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module.exports = {
'@babel',
'import',
'no-unsanitized',
'prefer-object-spread',
],

env: {
Expand Down Expand Up @@ -94,7 +93,7 @@ module.exports = {
'import/no-duplicates': 'error',
'import/no-dynamic-require': 'error',

'prefer-object-spread/prefer-object-spread': 'error',
'prefer-object-spread': 'error',
}
},
]
Expand Down
1 change: 0 additions & 1 deletion packages/kbn-eslint-config/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = {
'@typescript-eslint',
'ban',
'import',
'prefer-object-spread',
'eslint-comments'
],

Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-tinymath/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function evaluate(expression, 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);

function exec(node) {
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15380,11 +15380,6 @@ eslint-plugin-node@^11.1.0:
resolve "^1.10.1"
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:
version "4.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz#8b99d1e4b8b24a762472b4567992023619cb98e0"
Expand Down

0 comments on commit 3e6dff1

Please sign in to comment.