From 0259f7b2aec9ab66f3a040d08a5aeeb5c65e5756 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Wed, 23 Jan 2019 15:21:16 -0500 Subject: [PATCH] is-shallow-equal: Use ES5 ruleset from eslint-plugin module (#13428) --- packages/is-shallow-equal/.eslintrc.json | 6 ++++-- packages/is-shallow-equal/CHANGELOG.md | 4 ++++ packages/is-shallow-equal/benchmark/.eslintrc.json | 4 ++++ packages/is-shallow-equal/test/.eslintrc.json | 4 ++++ 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 packages/is-shallow-equal/benchmark/.eslintrc.json create mode 100644 packages/is-shallow-equal/test/.eslintrc.json diff --git a/packages/is-shallow-equal/.eslintrc.json b/packages/is-shallow-equal/.eslintrc.json index 118dc091c3c8a..3ab5b55d74cc0 100644 --- a/packages/is-shallow-equal/.eslintrc.json +++ b/packages/is-shallow-equal/.eslintrc.json @@ -1,5 +1,7 @@ { - "rules": { - "no-var": 0 + "root": true, + "extends": "plugin:@wordpress/eslint-plugin/es5", + "env": { + "node": true } } diff --git a/packages/is-shallow-equal/CHANGELOG.md b/packages/is-shallow-equal/CHANGELOG.md index cc266ecb20c85..876fcc4044e97 100644 --- a/packages/is-shallow-equal/CHANGELOG.md +++ b/packages/is-shallow-equal/CHANGELOG.md @@ -4,6 +4,10 @@ - Type-specific variants are now exposed from the module root. In a WordPress context, this has the effect of making them available as `wp.isShallowEqual.isShallowEqualObjects` and `wp.isShallowEqual.isShallowEqualArrays`. +### Internal + +- Development source code linting extends the `@wordpress/eslint-plugin/es5` ruleset. + ## 1.1.0 (2018-07-12) ### New Feature diff --git a/packages/is-shallow-equal/benchmark/.eslintrc.json b/packages/is-shallow-equal/benchmark/.eslintrc.json new file mode 100644 index 0000000000000..93ba810c78562 --- /dev/null +++ b/packages/is-shallow-equal/benchmark/.eslintrc.json @@ -0,0 +1,4 @@ +{ + "root": true, + "extends": "../../../.eslintrc.js" +} diff --git a/packages/is-shallow-equal/test/.eslintrc.json b/packages/is-shallow-equal/test/.eslintrc.json new file mode 100644 index 0000000000000..93ba810c78562 --- /dev/null +++ b/packages/is-shallow-equal/test/.eslintrc.json @@ -0,0 +1,4 @@ +{ + "root": true, + "extends": "../../../.eslintrc.js" +}