import { ExpandableWidget, List } from '@components/WidgetParts'; import { ThematicPreview } from '@ts/types/taxonomies'; import Link from 'next/link'; import { useIntl } from 'react-intl'; const RelatedThematics = ({ thematics }: { thematics: ThematicPreview[] }) => { const intl = useIntl(); const sortedThematics = [...thematics].sort((a, b) => a.title.localeCompare(b.title) ); const thematicsList = sortedThematics.map((thematic) => { return (
  • {thematic.title}
  • ); }); return ( ); }; export default RelatedThematics; personal website.Armand Philippot
    summaryrefslogtreecommitdiffstats
    path: root/lint-staged.config.js
    blob: 433cbc066c48e414041c9db4c5d783d547b90bf6 (plain)
    1
    2
    3
    4
    5
    6
    
    module.exports = {
      '**/*.ts?(x)': () => 'tsc -p tsconfig.json --noEmit',
      '**/*.(ts|tsx|js|jsx)': ['eslint --cache --fix', 'prettier --write'],
      '**/*.(md|json)': 'prettier --write',
      '**/*.scss': ['stylelint --fix', 'prettier --write'],
    };