Skip to content

Commit

Permalink
chore: enable eslint's ES2020 environment in examples and app template
Browse files Browse the repository at this point in the history
This facilitates the use of `globalThis`.
  • Loading branch information
wKovacs64 committed Aug 15, 2020
1 parent 96d7d47 commit d376c1a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
7 changes: 4 additions & 3 deletions examples/auth/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
env: {
es2020: true,
"cypress/globals": true,
},
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y", "cypress"],
rules: {
Expand All @@ -8,7 +12,4 @@ module.exports = {
"jsx-a11y/anchor-is-valid": "off", //Doesn't play well with Blitz/Next <Link> usage
"jsx-a11y/label-has-associated-control": "off", //Doesn't play well with form libraries
},
env: {
"cypress/globals": true,
},
}
3 changes: 3 additions & 0 deletions examples/no-prisma/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
env: {
es2020: true,
},
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y"],
rules: {
Expand Down
3 changes: 3 additions & 0 deletions examples/plain-js/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
env: {
es2020: true,
},
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y"],
rules: {
Expand Down
7 changes: 4 additions & 3 deletions examples/store/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module.exports = {
env: {
es2020: true,
"cypress/globals": true,
},
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y", "cypress"],
rules: {
Expand All @@ -8,7 +12,4 @@ module.exports = {
"jsx-a11y/anchor-is-valid": "off", //Doesn't play well with Blitz/Next <Link> usage
"jsx-a11y/label-has-associated-control": "off",
},
env: {
"cypress/globals": true,
},
}
3 changes: 3 additions & 0 deletions examples/tailwind/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
env: {
es2020: true,
},
extends: ["react-app", "plugin:jsx-a11y/recommended"],
plugins: ["jsx-a11y"],
rules: {
Expand Down
3 changes: 3 additions & 0 deletions packages/generator/templates/app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
env: {
es2020: true,
},
extends: ['react-app', 'plugin:jsx-a11y/recommended'],
plugins: ['jsx-a11y'],
rules: {
Expand Down

0 comments on commit d376c1a

Please sign in to comment.