Skip to content
Snippets Groups Projects
Commit ae2bbe92 authored by Andris Borbas's avatar Andris Borbas
Browse files

update deps

parent 0c11c84b
No related branches found
No related tags found
No related merge requests found
Pipeline #8367 failed
......@@ -4,15 +4,14 @@
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"next",
"plugin:@next/next/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:eslint-comments/recommended",
"plugin:etc/recommended",
"plugin:react-etc/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/prettier",
"prettier/react"
"prettier/prettier"
],
"plugins": ["simple-import-sort"],
......@@ -24,41 +23,32 @@
"simple-import-sort/exports": "error",
/* Custom preferences */
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }],
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-indexed-object-style": [
"error",
"index-signature" // Prevent ambiguity with Records & Tuples
],
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "as", // Improve consistency with JSX
"objectLiteralTypeAssertions": "allow-as-parameter" // Force type safety
}
],
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-module-boundary-types": "off", // Reduce bloat
"@typescript-eslint/method-signature-style": "error", // Force type safety
"@typescript-eslint/no-dynamic-delete": "error",
"@typescript-eslint/no-invalid-void-type": "error", // Force type safety
"@typescript-eslint/prefer-ts-expect-error": "error", // Force type safety
"import/no-anonymous-default-export": "error", // For named React components
// "import/no-default-export": "error", // Default exports are confusing
// "import/prefer-default-export": "off",
"import/prefer-default-export": "off",
"jsx-a11y/anchor-is-valid": "off", // Doesn't play well with Next `<Link>`
"prefer-exponentiation-operator": "error", // Auto-fix for an inherited rule
"react/react-in-jsx-scope": "off", // React is always in scope with Next
"react/require-default-props": "off", // React `defaultProps` are deprecated
/* next-image-optimizer */
"import/no-dynamic-require": "off",
"global-require": "off"
"react/jsx-no-target-blank": "off", // Links on the site should be safe
"no-plusplus": "off"
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-var-requires": "off", // Allow CommonJS imports
"global-require": "off" // Allow dynamic imports for Node
}
......
_
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
......@@ -8,19 +8,18 @@ const withMDX = require("@next/mdx")({
const optimizedImages = require("next-optimized-images");
const nextConfig = {
reactStrictMode: true,
trailingSlash: true,
};
// const CAK = process.env.NEXT_PUBLIC_CLOUDINARY_API_KEY;
// const CAS = process.env.NEXT_PUBLIC_CLOUDINARY_API_SECRET;
module.exports = withPlugins(
[
[withBundleAnalyzer({ enabled: process.env.ANALYZE === "true" })],
{
reactStrictMode: true,
},
[withMDX({ pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"] })],
{
reactStrictMode: true,
},
[
optimizedImages,
{
......@@ -28,8 +27,5 @@ module.exports = withPlugins(
},
],
],
{
reactStrictMode: true,
trailingSlash: true,
},
nextConfig,
);
This diff is collapsed.
......@@ -28,50 +28,53 @@
"dependencies": {
"@mdx-js/loader": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@next/bundle-analyzer": "^10.1.2",
"@next/mdx": "^10.1.2",
"babel-plugin-optimize-clsx": "^2.6.1",
"@next/bundle-analyzer": "^11.0.1",
"@next/mdx": "^11.0.1",
"babel-plugin-optimize-clsx": "^2.6.2",
"clsx": "^1.1.1",
"dotenv": "^8.2.0",
"dotenv": "^10.0.0",
"imagemin-mozjpeg": "^9.0.0",
"imagemin-pngquant": "^9.0.2",
"lqip-loader": "^2.1.1",
"next": "^10.1.2",
"lqip-loader": "^2.2.1",
"next": "^11.0.1",
"next-compose-plugins": "^2.2.1",
"next-optimized-images": "^2.6.2",
"postcss-import": "^14.0.1",
"postcss-import": "^14.0.2",
"postcss-preset-env": "^6.7.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-icons": "^4.2.0",
"react-images": "^1.1.7",
"tailwindcss": "^2.0.4",
"tailwindcss": "^2.2.4",
"webp-loader": "^0.6.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "^10.1.2",
"@types/mdx-js__react": "^1.5.3",
"@types/node": "^14.14.37",
"@types/react": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^4.20.0",
"@typescript-eslint/parser": "^4.20.0",
"@next/eslint-plugin-next": "^11.0.1",
"@types/mdx-js__react": "^1.5.4",
"@types/node": "^16.3.2",
"@types/react": "^17.0.14",
"@types/react-dom": "^17.0.9",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"cross-env": "^7.0.3",
"eslint": "^7.23.0",
"eslint": "^7.30.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-prettier": "^8.1.0",
"eslint-config-next": "^11.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-etc": "^1.3.8",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-etc": "^1.5.4",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.23.1",
"eslint-plugin-react-etc": "^1.0.6",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-etc": "^1.1.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"husky": "^2.7.0",
"lint-staged": "^10.5.4",
"husky": "^7.0.1",
"lint-staged": "^11.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"prettier-plugin-tailwind": "^2.2.10",
"typescript": "^4.2.3"
"prettier": "^2.3.2",
"prettier-plugin-tailwind": "^2.2.12",
"typescript": "^4.3.5",
"typescript-plugin-css-modules": "^3.4.0"
}
}
module.exports = {
// purge: [],
mode: "jit",
purge: ["./src/**/*.{js,ts,tsx,mdx}"],
theme: {
extend: {
......@@ -8,8 +8,22 @@ module.exports = {
},
fontFamily: {
schdesign: "schdesign",
RobotoMono: "Roboto Mono",
Montserrat: "Montserrat",
RobotoMono: [
"Roboto Mono",
"ui-sans-serif",
"system-ui",
"-apple-system",
'"Segoe UI"',
"Roboto",
],
Montserrat: [
"Montserrat",
"ui-sans-serif",
"system-ui",
"-apple-system",
'"Segoe UI"',
"Roboto",
],
},
boxShadow: {
darker:
......
{
"extends": "@tsconfig/next/tsconfig.json",
"compilerOptions": {
"baseUrl": "./src/",
"paths": { "@/*": ["*"], "*": [""] },
"importsNotUsedAsValues": "error",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"plugins": [
{
"name": "typescript-plugin-css-modules"
}
]
},
"include": [
"*.config.js",
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"**/*.d.ts"
],
"exclude": ["node_modules"]
"include": ["*.config.js", "next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "public"]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment