Skip to content

Commit

Permalink
chore: lint for browser compatability so humans don't have to (#17527)
Browse files Browse the repository at this point in the history
* chore: lint for browser compatability so humans don't have to

* Doh

* Update UI snapshots for `chromium` (1)

* we already do not support opera mini

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
pauldambra and github-actions[bot] authored Sep 19, 2023
1 parent b653af8 commit bb61ee1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
'plugin:eslint-comments/recommended',
'plugin:storybook/recommended',
'prettier',
'plugin:compat/recommended',
],
globals,
parser: '@typescript-eslint/parser',
Expand All @@ -36,7 +37,7 @@ module.exports = {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['prettier', 'react', 'cypress', '@typescript-eslint', 'no-only-tests', 'jest'],
plugins: ['prettier', 'react', 'cypress', '@typescript-eslint', 'no-only-tests', 'jest', 'compat'],
rules: {
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-debugger': 'error',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
"cypress-terminal-report": "^5.1.1",
"eslint": "^7.8.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-cypress": "^2.13.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jest": "^27.2.3",
Expand Down Expand Up @@ -305,7 +306,7 @@
"last 2 edge versions"
],
"production": [
"defaults"
"defaults and not not op_mini all"
]
},
"browser": {
Expand Down
37 changes: 33 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb61ee1

Please sign in to comment.