chore: update dependencies, lint

This commit is contained in:
Ash Gray 2023-08-05 18:21:27 +00:00
parent e03c1a0646
commit cdf3c532ac
No known key found for this signature in database
GPG Key ID: 6A97F2F3FD3DFC77
5 changed files with 2066 additions and 760 deletions

View File

@ -1,2 +1,2 @@
# web javascript causes a lot of eslint warnings
assets/js
# not our code, we don't care!
node_modules

View File

@ -13,12 +13,12 @@ import styles from './Title.module.css';
*/
export default function Title(ctx) {
const { children: title, element, style, id } = ctx;
const { children: title = '', element, style, id } = ctx;
// regex to match all start/end punctuation except for parentheses and brackets. Please never make me do this again.
const punctuationRegex = {
prefix: /^((?![/\)\(\[\]\{\}])([\p{P}\p{S}]))+/ug,
suffix: /((?![/\)\(\[\]\{\}])([\p{P}\p{S}]))+$/ug,
prefix: /^((?![/\)\(\[\]\{\}])([\p{P}\p{S}]))+/gu,
suffix: /((?![/\)\(\[\]\{\}])([\p{P}\p{S}]))+$/gu,
};
// split the title into prefix, title, and suffix
@ -45,7 +45,7 @@ export default function Title(ctx) {
{suffix}
</span>
);
})
})
: null;
// create the title react element

2795
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,17 +10,16 @@
"lint": "next lint"
},
"dependencies": {
"@next/font": "^13.0.1",
"chalk": "^5.1.2",
"chalk": "^5.3.0",
"classnames": "^2.3.2",
"eslint": "8.26.0",
"eslint-config-next": "13.0.1",
"fs-extra": "^10.1.0",
"eslint": "^8.46.0",
"eslint-config-next": "^13.4.12",
"fs-extra": "^11.1.1",
"lodash.merge": "^4.6.2",
"next": "13.0.1",
"next": "^13.4.8-canary.8",
"phosphor-react": "^1.4.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"sharp": "^0.31.2"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sharp": "^0.32.4"
}
}

View File

@ -1,6 +1,6 @@
import '../styles/globals.css';
import { Poppins } from '@next/font/google';
import { Poppins } from 'next/font/google';
const poppins = Poppins({
weight: ['400', '700'],
fallback: ['Arial', 'Helvetica', 'system-ui', 'sans-serif'],