Matchu
494f82601f
Ok cool, I have just not been running any of this since moving out of impress-2020, but now that we're doing serious JS work in here it's time to turn it back on!! 1. Install eslint and the plugins we use 2. Set up a `yarn lint` command 3. Set up a git hook via husky to lint on pre-commit 4. Fix/disable all the lint errors!
48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"name": "impress",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@apollo/client": "^3.6.9",
|
|
"@chakra-ui/icons": "^1.0.4",
|
|
"@chakra-ui/react": "^1.6.0",
|
|
"@emotion/react": "^11.1.4",
|
|
"@emotion/styled": "^11.0.0",
|
|
"@loadable/component": "^5.12.0",
|
|
"@sentry/react": "^5.30.0",
|
|
"@sentry/tracing": "^5.30.0",
|
|
"@tanstack/react-query": "^5.4.3",
|
|
"apollo-link-persisted-queries": "^0.2.2",
|
|
"easeljs": "^1.0.2",
|
|
"esbuild": "^0.19.0",
|
|
"framer-motion": "^4.1.11",
|
|
"graphql": "^15.5.0",
|
|
"graphql-tag": "^2.12.6",
|
|
"immer": "^9.0.6",
|
|
"lru-cache": "^6.0.0",
|
|
"react": "^18.2.0",
|
|
"react-autosuggest": "^10.0.2",
|
|
"react-dom": "^18.2.0",
|
|
"react-icons": "^4.2.0",
|
|
"react-router-dom": "^6.15.0",
|
|
"react-transition-group": "^4.3.0",
|
|
"tweenjs": "^1.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
"@typescript-eslint/parser": "^6.9.1",
|
|
"eslint": "^8.52.0",
|
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"husky": "^8.0.3",
|
|
"prettier": "^3.0.3",
|
|
"typescript": "^5.2.2"
|
|
},
|
|
"scripts": {
|
|
"build": "esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets --asset-names=[name]-[hash].digested --loader:.js=jsx --loader:.png=file --loader:.svg=file --loader:.min.js=text",
|
|
"build:dev": "yarn build --public-path=/dev-assets",
|
|
"dev": "yarn build:dev --watch",
|
|
"lint": "eslint app/javascript",
|
|
"prepare": "husky install"
|
|
}
|
|
}
|