diff --git a/examples/auth/.eslintrc.js b/examples/auth/.eslintrc.js
index e04b6c4fb4..2601b95906 100644
--- a/examples/auth/.eslintrc.js
+++ b/examples/auth/.eslintrc.js
@@ -1,4 +1,8 @@
module.exports = {
+ env: {
+ es2020: true,
+ "cypress/globals": true,
+ },
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y", "cypress"],
rules: {
@@ -8,7 +12,4 @@ module.exports = {
"jsx-a11y/anchor-is-valid": "off", //Doesn't play well with Blitz/Next usage
"jsx-a11y/label-has-associated-control": "off", //Doesn't play well with form libraries
},
- env: {
- "cypress/globals": true,
- },
}
diff --git a/examples/no-prisma/.eslintrc.js b/examples/no-prisma/.eslintrc.js
index a24038d7d3..71f356cbaf 100644
--- a/examples/no-prisma/.eslintrc.js
+++ b/examples/no-prisma/.eslintrc.js
@@ -1,4 +1,7 @@
module.exports = {
+ env: {
+ es2020: true,
+ },
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y"],
rules: {
diff --git a/examples/plain-js/.eslintrc.js b/examples/plain-js/.eslintrc.js
index a24038d7d3..71f356cbaf 100644
--- a/examples/plain-js/.eslintrc.js
+++ b/examples/plain-js/.eslintrc.js
@@ -1,4 +1,7 @@
module.exports = {
+ env: {
+ es2020: true,
+ },
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y"],
rules: {
diff --git a/examples/store/.eslintrc.js b/examples/store/.eslintrc.js
index 6a0fad8e1e..7a6aaec971 100644
--- a/examples/store/.eslintrc.js
+++ b/examples/store/.eslintrc.js
@@ -1,4 +1,8 @@
module.exports = {
+ env: {
+ es2020: true,
+ "cypress/globals": true,
+ },
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y", "cypress"],
rules: {
@@ -8,7 +12,4 @@ module.exports = {
"jsx-a11y/anchor-is-valid": "off", //Doesn't play well with Blitz/Next usage
"jsx-a11y/label-has-associated-control": "off",
},
- env: {
- "cypress/globals": true,
- },
}
diff --git a/examples/tailwind/.eslintrc.js b/examples/tailwind/.eslintrc.js
index a24038d7d3..71f356cbaf 100644
--- a/examples/tailwind/.eslintrc.js
+++ b/examples/tailwind/.eslintrc.js
@@ -1,4 +1,7 @@
module.exports = {
+ env: {
+ es2020: true,
+ },
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y"],
rules: {
diff --git a/packages/generator/templates/app/.eslintrc.js b/packages/generator/templates/app/.eslintrc.js
index f30072a54b..a92e4157f5 100644
--- a/packages/generator/templates/app/.eslintrc.js
+++ b/packages/generator/templates/app/.eslintrc.js
@@ -1,4 +1,7 @@
module.exports = {
+ env: {
+ es2020: true,
+ },
extends: ['react-app', 'plugin:jsx-a11y/recommended'],
plugins: ['jsx-a11y'],
rules: {