mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-03-21 17:24:28 -05:00
chore: update dependencies, lint
This commit is contained in:
parent
e03c1a0646
commit
cdf3c532ac
|
|
@ -1,2 +1,2 @@
|
|||
# web javascript causes a lot of eslint warnings
|
||||
assets/js
|
||||
# not our code, we don't care!
|
||||
node_modules
|
||||
|
|
|
|||
|
|
@ -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
2795
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user