diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 28b3b141..0897335e 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -22,6 +22,7 @@ module.exports = getESLintConfig({ rules: { 'no-use-before-define': 0, 'import/named': 0, + '@typescript-eslint/no-shadow': 0, '@typescript-eslint/ban-ts-comment': 0 // We do need our ts-ignores } }, @@ -43,7 +44,6 @@ module.exports = getESLintConfig({ '@typescript-eslint/explicit-module-boundary-types': 0, '@typescript-eslint/restrict-template-expressions': 0, '@typescript-eslint/restrict-plus-operands': 0, - 'no-shadow': 0, 'max-params': 0, 'max-statements': 0, complexity: 0, diff --git a/package.json b/package.json index 6f59fbbd..3fbdf3a7 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "publish-beta": "ocular-publish version-only-beta", "publish-prod": "ocular-publish version-only-prod", "test": "ocular-test", - "test-pre-commit": "ocular-lint pre-commit && ocular-test node" + "test-pre-commit": "ocular-lint && ocular-test node" }, "devDependencies": { "@probe.gl/bench": "^4.0.0", diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index ee7145ab..81b6ffd6 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -17,8 +17,7 @@ const config = getDocusaurusConfig({ webpackConfig: { resolve: { alias: { - 'website-examples': resolve('../examples'), - '@probe.gl/bench': resolve('../node_modules/@probe.gl/bench') + 'website-examples': resolve('../examples') } } } diff --git a/website/package.json b/website/package.json index fc57909e..226ff100 100644 --- a/website/package.json +++ b/website/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@docusaurus/core": "^3.0.0", - "@vis.gl/docusaurus-website": "1.0.0-alpha.19", + "@vis.gl/docusaurus-website": "1.0.0-alpha.20", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/website/src/pages/index.jsx b/website/src/pages/index.jsx index 12b74fe6..d9018e09 100644 --- a/website/src/pages/index.jsx +++ b/website/src/pages/index.jsx @@ -4,32 +4,10 @@ import useBaseUrl from '@docusaurus/useBaseUrl'; import styled from 'styled-components'; import Layout from '@theme/Layout'; -// import HeroExample from '../examples/home-demo'; -const HeroExample = ({children}) =>