diff --git a/.eslintrc.js b/.eslintrc.js index 05d80df6..7c7037ca 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,8 +4,10 @@ module.exports = { typescript: {}, // this loads /tsconfig.json to eslint }, }, + parser: '@typescript-eslint/parser', parserOptions: { - project: './tsconfig.json', + project: true, + tsconfigRootDir: __dirname, }, extends: ['@pluralsh/eslint-config-typescript', 'prettier'], globals: { diff --git a/.stylelintrc.yaml b/.stylelintrc.yaml index ff3cf315..6e478177 100644 --- a/.stylelintrc.yaml +++ b/.stylelintrc.yaml @@ -1,10 +1,18 @@ extends: - - "@pluralsh/stylelint-config" - - "stylelint-config-prettier" -ignoreFiles: [""] + - '@pluralsh/stylelint-config' + - 'stylelint-config-prettier' +ignoreFiles: [''] rules: + plugin/no-unsupported-browser-features: + - true + - browsers: + - '> 1%' + - Last 4 versions + ignore: + - fontface + ignorePartialSupport: true at-rule-no-unknown: - true - ignoreAtRules: - - "@tailwind" - - "tailwind" + - '@tailwind' + - 'tailwind' diff --git a/next.config.js b/next.config.js index 9bbd1b1f..d1d5c028 100644 --- a/next.config.js +++ b/next.config.js @@ -47,6 +47,11 @@ module.exports = () => { destination: '/kubernetes-fleet-management', permanent: true, }, + { + source: '/demo-login', + destination: '/contact-sales', + permanent: true, + }, ] }, }) diff --git a/package.json b/package.json index d33918c0..6b5aa754 100644 --- a/package.json +++ b/package.json @@ -97,15 +97,16 @@ "@types/node": "20.4.2", "@types/react-dom": "18.2.7", "@types/styled-components": "5.1.30", - "@typescript-eslint/eslint-plugin": "5.62.0", + "@typescript-eslint/eslint-plugin": "7.0.1", + "@typescript-eslint/parser": "7.0.1", "autoprefixer": "10.4.14", "concurrently": "8.2.0", "cross-env": "7.0.3", - "eslint": "8.53.0", - "eslint-config-next": "14.0.2", - "eslint-config-prettier": "9.0.0", + "eslint": "8.56.0", + "eslint-config-next": "14.1.0", + "eslint-config-prettier": "9.1.0", "eslint-import-resolver-typescript": "3.6.1", - "eslint-plugin-import": "2.29.0", + "eslint-plugin-import": "2.29.1", "eslint-plugin-import-newlines": "1.3.4", "eslint-plugin-jsx-a11y": "6.8.0", "eslint-plugin-react": "7.33.2", @@ -119,7 +120,7 @@ "stylelint": "15.10.1", "stylelint-config-prettier": "9.0.5", "tailwindcss": "3.3.3", - "typescript": "5.2.2" + "typescript": "5.3.3" }, "packageManager": "yarn@3.7.0", "lint-staged": { diff --git a/pages/demo-login.tsx b/pages/demo-login.tsx deleted file mode 100644 index 041356df..00000000 --- a/pages/demo-login.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { ColorModeProvider } from '@pluralsh/design-system' -import Head from 'next/head' -import Script from 'next/script' - -import { FooterVariant } from '@src/components/FooterFull' -import { GradientBG } from '@src/components/layout/GradientBG' -import { HeaderPad } from '@src/components/layout/HeaderPad' -import { propsWithGlobalSettings } from '@src/utils/getGlobalProps' - -import { HubspotForm } from '../src/components/HubspotForm' -import { StandardPageWidth } from '../src/components/layout/LayoutHelpers' - -import { ContactHeader } from './contact' - -export default function Index() { - return ( - <> - -