feat: integrate eslint & prettier
Showing
.eslintignore
0 → 100755
.eslintrc.json
0 → 100644
.husky/pre-commit
0 → 100755
.prettierignore
0 → 100755
.prettierrc.json
0 → 100644
.vscode/settings.json
0 → 100644
... | ... | @@ -3,24 +3,29 @@ |
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"@testing-library/jest-dom": "^5.17.0", | ||
"@testing-library/react": "^13.4.0", | ||
"@testing-library/user-event": "^13.5.0", | ||
"@types/jest": "^27.5.2", | ||
"@types/node": "^16.18.79", | ||
"@testing-library/jest-dom": "^6.4.1", | ||
"@testing-library/react": "^14.2.1", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.11.16", | ||
"@types/react": "^18.2.52", | ||
"@types/react-dom": "^18.2.18", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-scripts": "5.0.1", | ||
"typescript": "^4.9.5", | ||
"web-vitals": "^2.1.4" | ||
"typescript": "5.1.6", | ||
"web-vitals": "^3.5.2" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
"eject": "react-scripts eject", | ||
"format": "prettier --write src/**/*.{ts,tsx,css} --config ./.prettierrc.json", | ||
"lint": "eslint src --ext ts --ext tsx --ext js", | ||
"lint:fix": "eslint --fix src --ext ts --ext tsx --ext js", | ||
"lint-staged": "lint-staged", | ||
"prepare": "husky install" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
... | ... | @@ -43,5 +48,29 @@ |
"main": "index.js", | ||
"repository": "http://gitlab.sliit.lk/thisaraAtSliit/speakezy_frontend.git", | ||
"author": "Thisara Kavinda <thisara48kavinda@gmail.com>", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^6.20.0", | ||
"@typescript-eslint/parser": "^6.20.0", | ||
"eslint": "^8.0.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-config-standard-with-typescript": "^43.0.1", | ||
"eslint-plugin-import": "^2.25.2", | ||
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-react": "^7.33.2", | ||
"husky": "^8.0.0", | ||
"lint-staged": "^15.2.1", | ||
"prettier": "3.2.5" | ||
}, | ||
"lint-staged": { | ||
"src/**/*.{js,jsx,ts,tsx,css}": [ | ||
"yarn format", | ||
"yarn lint:fix" | ||
] | ||
}, | ||
"simple-git-hooks": { | ||
"pre-commit": "yarn lint-staged" | ||
} | ||
} |
Please register or sign in to comment