123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- {
- "browserslist": {
- "production": [
- ">0.2%",
- "not dead",
- "not ie <= 11",
- "not op_mini all",
- "not safari < 12",
- "not kaios <= 2.5",
- "not edge < 79",
- "not chrome < 70",
- "not and_uc < 13",
- "not samsung < 10"
- ],
- "development": [
- "last 1 chrome version",
- "last 1 firefox version",
- "last 1 safari version"
- ]
- },
- "dependencies": {
- "@sentry/browser": "5.15.4",
- "@sentry/integrations": "5.15.4",
- "browser-nativefs": "0.6.0",
- "i18next-browser-languagedetector": "4.0.2",
- "nanoid": "2.1.11",
- "open-color": "1.7.0",
- "react": "16.13.1",
- "react-dom": "16.13.1",
- "react-scripts": "3.4.1",
- "roughjs": "4.1.4",
- "socket.io-client": "2.3.0"
- },
- "devDependencies": {
- "@testing-library/jest-dom": "5.5.0",
- "@testing-library/react": "10.0.2",
- "@types/jest": "25.2.1",
- "@types/nanoid": "2.1.0",
- "@types/react": "16.9.34",
- "@types/react-dom": "16.9.6",
- "@types/socket.io-client": "1.4.32",
- "asar": "3.0.3",
- "eslint": "6.8.0",
- "eslint-config-prettier": "6.10.1",
- "eslint-plugin-prettier": "3.1.3",
- "husky": "4.2.5",
- "jest-canvas-mock": "2.2.0",
- "lint-staged": "10.1.3",
- "node-sass": "4.13.1",
- "pepjs": "0.5.2",
- "prettier": "2.0.3",
- "rewire": "5.0.0",
- "typescript": "3.8.3"
- },
- "engines": {
- "node": ">=12.0.0"
- },
- "eslintConfig": {
- "extends": [
- "prettier",
- "react-app"
- ],
- "plugins": [
- "prettier"
- ],
- "rules": {
- "curly": "warn",
- "no-console": [
- "warn",
- {
- "allow": [
- "warn",
- "error",
- "info"
- ]
- }
- ],
- "no-else-return": "warn",
- "no-useless-return": "warn",
- "prefer-const": [
- "warn",
- {
- "destructuring": "all"
- }
- ],
- "prefer-template": "warn",
- "prettier/prettier": "warn",
- "no-restricted-syntax": [
- "warn",
- {
- "selector": "JSXText[value=/\\w/]",
- "message": "Use 't(...)' instead of literal text in JSX"
- }
- ]
- }
- },
- "homepage": ".",
- "husky": {
- "hooks": {
- "pre-commit": "lint-staged"
- }
- },
- "jest": {
- "transformIgnorePatterns": [
- "node_modules/(?!(roughjs|browser-nativefs)/)"
- ]
- },
- "private": true,
- "scripts": {
- "build": "npm run build:app && npm run build:zip",
- "build-node": "node ./scripts/build-node.js",
- "build:app": "REACT_APP_GIT_SHA=$NOW_GITHUB_COMMIT_SHA react-scripts build",
- "build:zip": "node ./scripts/build-version.js",
- "eject": "react-scripts eject",
- "fix": "npm run fix:other && npm run fix:code",
- "fix:code": "npm run test:code -- --fix",
- "fix:other": "npm run prettier -- --write",
- "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
- "start": "react-scripts start",
- "test": "npm run test:app",
- "test:all": "npm run test:typecheck && npm run test:code && npm run test:other && npm run test:app -- --watchAll=false",
- "test:update": "npm run test:app -- --updateSnapshot --watchAll=false",
- "test:app": "react-scripts test --env=jsdom --passWithNoTests",
- "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .",
- "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
- "test:other": "npm run prettier -- --list-different",
- "test:typecheck": "tsc"
- }
- }
|