gitmoji/packages/website/package.json
Carlos Cuesta f23d0977e6
♻️ Migrate website to TypeScript (#1244)
* 🔧 Add typescript configuration files
*  Install typescript dependencies
* ♻️ Migrate `lint-staged` to .ts(x) files
* ♻️ Migrate `eslint` configuration to TypeScript
* ♻️ Migrate `jest` configuration to TypeScript
* 🔥 Remove `babel` configuration
*  Uninstall flow dependencies
* 🔥 Remove `flow` configuration
* 👷 Run `tsc` in `ci` workflow
* 🔧 Update `pre-push` hook
* ♻️ Migrate `pages/api` to TS
* ♻️ Migrate `pages/_app` to TS
* ♻️ Migrate `pages/_document` to TS
* ♻️ Migrate `pages/about` to TS
* ♻️ Migrate `pages/contributors` to TS
* ♻️ Migrate `pages/index` to TS
* ♻️ Migrate `pages/related-tools` to TS
* ♻️ Migrate `components/Button` to TS
* ♻️ Migrate `components/CarbonAd` to TS
* ♻️ Migrate `components/ContributorsList` to TS
* ♻️ Migrate `components/Icon` to TS
* ♻️ Migrate `components/SEO` to TS
* ♻️ Migrate `components/Layout` to TS
* ♻️ Migrate `components/GitmojiList` to TS
* ♻️ Migrate `__tests__/` pages to TS
* 🏷️ Update `next-env.d.ts`
2022-12-28 16:27:23 +01:00

137 lines
3.1 KiB
JSON

{
"name": "website",
"private": true,
"version": "1.0.0",
"engines": {
"node": "16"
},
"scripts": {
"build": "next build && next-sitemap",
"tscheck": "yarn tsc --noEmit",
"dev": "next dev",
"lint": "eslint ./src && prettier --check ./src/**/*.{ts,tsx,css}",
"start": "next start",
"test": "FORCE_COLOR=1 jest --coverage"
},
"devDependencies": {
"@types/fetch-mock": "^7.3.5",
"@types/jest": "^29.2.4",
"@types/react": "^18.0.26",
"@types/react-test-renderer": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"clipboard": "^2.0.4",
"eslint": "^8.26.0",
"eslint-config-next": "^13.1.1",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-jest": "^27.1.3",
"eslint-plugin-react": "^7.31.10",
"focus-trap-react": "^10.0.0",
"gitmojis": "workspace:*",
"jest": "^29.0.1",
"jest-environment-jsdom": "^29.0.1",
"jest-fetch-mock": "^3.0.3",
"lint-staged": "^13.0.0",
"next": "^13.1.1",
"next-pwa": "^5.4.4",
"next-sitemap": "^3.1.43",
"next-themes": "^0.2.0",
"node-mocks-http": "^1.12.1",
"prettier": "2.8.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"typescript": "^4.9.4"
},
"author": {
"name": "carloscuesta",
"email": "hi@carloscuesta.me",
"url": "https://carloscuesta.me"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/carloscuesta/gitmoji/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/carloscuesta/gitmoji.git"
},
"homepage": "https://gitmoji.dev",
"keywords": [
"gitmoji",
"emoji",
"carloscuesta",
"commit"
],
"prettier": {
"semi": false,
"singleQuote": true,
"arrowParens": "always"
},
"volta": {
"node": "16.15.0"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"env": {
"jest": true,
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier",
"plugin:@next/next/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module",
"requireConfigFile": false,
"babelOptions": {
"presets": [
"next/babel"
]
}
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"react/react-in-jsx-scope": "off",
"@next/next/no-img-element": "off",
"react/no-unknown-property": [
"error",
{
"ignore": [
"jsx",
"global"
]
}
]
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"alias": {
"map": [
[
"src",
"./src"
]
]
}
}
}
}
}