Skip to content

Commit

Permalink
[#1] Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dedenbangkit committed Aug 30, 2023
1 parent 6d6ac93 commit 96494cb
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 61 deletions.
110 changes: 55 additions & 55 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
{
"name": "myapp",
"version": "0.1.0",
"private": true,
"dependencies": {
"akvo-react-form": "^2.2.3",
"axios": "^0.25.0",
"axios-mock-adapter": "^1.21.1",
"pullstate": "^1.23.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"devDependencies": {
"@babel/core": "^7.16.12",
"@babel/eslint-parser": "^7.16.5",
"@babel/preset-react": "^7.16.7",
"@testing-library/dom": "^8.11.3",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"axios-mock-adapter": "^1.21.1",
"cross-env": "^7.0.3",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-export": "^0.1.2",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"http-proxy-middleware": "^2.0.2",
"jest-canvas-mock": "^2.4.0",
"node-sass": "^7.0.1",
"prettier": "^2.5.1",
"react-test-renderer": "^17.0.2",
"yarn-audit-fix": "^9.3.1"
},
"scripts": {
"start": "react-scripts start",
"lint": "eslint --config .eslintrc.json src --ext .js,.jsx",
"prettier": "prettier --check src",
"build": "react-scripts build",
"test": "react-scripts test --updateSnapshot --transformIgnorePatterns \"node_modules/(?!d3|d3-geo|d3-array|internmap|delaunator|robust-predicates)/\"",
"test:ci": "CI=true react-scripts test --watchAll=false --coverage --transformIgnorePatterns \"node_modules/(?!d3|d3-geo|d3-array|internmap|delaunator|robust-predicates)/\"",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": ["react-app", "react-app/jest"]
},
"browserslist": {
"production": [">0.2%", "not dead", "not op_mini all"],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
"name": "myapp",
"version": "0.1.0",
"private": true,
"dependencies": {
"akvo-react-form": "^2.2.3",
"axios": "^0.25.0",
"axios-mock-adapter": "^1.21.1",
"pullstate": "^1.23.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"devDependencies": {
"@babel/core": "^7.16.12",
"@babel/eslint-parser": "^7.16.5",
"@babel/preset-react": "^7.16.7",
"@testing-library/dom": "^8.11.3",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"axios-mock-adapter": "^1.21.1",
"cross-env": "^7.0.3",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-export": "^0.1.2",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"http-proxy-middleware": "^2.0.2",
"jest-canvas-mock": "^2.4.0",
"node-sass": "^7.0.1",
"prettier": "^2.5.1",
"react-test-renderer": "^17.0.2",
"yarn-audit-fix": "^9.3.1"
},
"scripts": {
"start": "react-scripts start",
"lint": "eslint --config .eslintrc.json src --ext .js,.jsx",
"prettier": "prettier --check src",
"build": "react-scripts build",
"test": "react-scripts test --updateSnapshot --transformIgnorePatterns \"node_modules/(?!d3|d3-geo|d3-array|internmap|delaunator|robust-predicates)/\"",
"test:ci": "CI=true react-scripts test --watchAll=false --coverage --transformIgnorePatterns \"node_modules/(?!d3|d3-geo|d3-array|internmap|delaunator|robust-predicates)/\"",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": ["react-app", "react-app/jest"]
},
"browserslist": {
"production": [">0.2%", "not dead", "not op_mini all"],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
6 changes: 3 additions & 3 deletions frontend/src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen } from '@testing-library/react';
import App from './App';
import { render, screen } from "@testing-library/react";
import App from "./App";

test('renders learn react link', () => {
test("renders learn react link", () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import reportWebVitals from "./reportWebVitals";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
<React.StrictMode>
<App />
</React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
Expand Down

0 comments on commit 96494cb

Please sign in to comment.