Skip to content

Commit

Permalink
Add eslint-plugin-compat to check for browser errors. It sucks right …
Browse files Browse the repository at this point in the history
…now.
  • Loading branch information
replete committed Aug 8, 2024
1 parent eb2bcd4 commit 82af447
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 87 deletions.
2 changes: 1 addition & 1 deletion cssreport.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default [
quotes: [2, 'single'],
'object-curly-spacing': [2, 'always'],
'no-unused-vars': [2, { 'vars': 'all', 'args': 'after-used', 'ignoreRestSiblings': true }],
indent: ['warn', 'tab', {
indent: ['warn', 'tab', {
ignoredNodes: [
'ConditionalExpression',
'TemplateLiteral'
Expand All @@ -38,7 +38,7 @@ export default [
'no-loop-func': 2,
'dot-location': ['error', 'property']
},
},
},
{
files: ['src/*.js','src/*.mjs'],
languageOptions: {
Expand All @@ -49,7 +49,7 @@ export default [
rules: {

}
},
},
{
files: ['jest.setup.js', '__tests__/**/*.js'],
rules: {
Expand All @@ -69,4 +69,4 @@ export default [
}
}
}
]
]
147 changes: 106 additions & 41 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"browserslist": "^4.23.3",
"doiuse": "^6.0.2",
"eslint": "^9.8.0",
"eslint-plugin-compat": "^6.0.0",
"globals": "^15.9.0",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
Expand Down
Loading

0 comments on commit 82af447

Please sign in to comment.