Skip to content

Commit

Permalink
Fixed eslint and babel configs in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
matux committed Feb 24, 2024
1 parent 6a6b41b commit ce95fdf
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/create-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"eject": "react-scripts eject"
},
"eslintConfig": {
"root": true,
"extends": [
"react-app",
"react-app/jest"
Expand Down
3 changes: 0 additions & 3 deletions examples/nextjs/.eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions examples/nextjs/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {}
6 changes: 6 additions & 0 deletions examples/nextjs/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: 'next/core-web-vitals',
ignorePatterns: ['node_modules'],
}
45 changes: 45 additions & 0 deletions examples/nextjs/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 examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"rollbar": "^2.24.0"
},
"devDependencies": {
"@types/eslint": "^8.56.3",
"@types/node": "17.0.21",
"@types/react": "17.0.39",
"eslint": "8.10.0",
Expand Down
1 change: 1 addition & 0 deletions examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"lint": "eslint src"
},
"eslintConfig": {
"root": true,
"extends": [
"react-app",
"react-app/jest"
Expand Down

0 comments on commit ce95fdf

Please sign in to comment.