Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbillis committed Oct 10, 2024
1 parent f2458ac commit 9f08efe
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 37 deletions.
13 changes: 7 additions & 6 deletions components/HoldingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@
src="https://assets-cdn.sums.su/YU/IMG/Website/new_logo_beige.png"
alt="University of York Students' Union"
loading="lazy"
/>
>
<h1 class="my-4 text-xl">
This is a special purpose website, and is currently under construction..
</h1>
<h1 class="my-4 text-xl">
To get in touch with us, you can contact us at
<a href="mailto:helpdesk@yorksu.org" class="text-blue-800 underline"
>helpdesk@yorksu.org</a
>.
<a
href="mailto:helpdesk@yorksu.org"
class="text-blue-800 underline"
>helpdesk@yorksu.org</a>.
</h1>
</div>
</div>
</template>

<script>
export default {
name: "HoldingPage",
};
name: 'HoldingPage',
}
</script>
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import withNuxt from "./.nuxt/eslint.config.mjs";
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt();
export default withNuxt()
6 changes: 3 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
compatibilityDate: '2024-04-03',
devtools: { enabled: true },

nitro: {
prerender: {
autoSubfolderIndex: false,
},
},
modules: ["@nuxt/eslint", "@sentry/nuxt/module", "@nuxtjs/tailwindcss"],
modules: ['@nuxt/eslint', '@sentry/nuxt/module', '@nuxtjs/tailwindcss'],
eslint: {
config: {
stylistic: true,
},
},
});
})
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"typescript-eslint": "^8.8.1"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
"**/*": [
"prettier --write --ignore-unknown",
"eslint . --fix"
]
}
}
8 changes: 4 additions & 4 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import * as Sentry from "@sentry/nuxt";
import * as Sentry from '@sentry/nuxt'

Sentry.init({
// If set up, you can use your runtime config here
// dsn: useRuntimeConfig().public.sentry.dsn,
dsn: "https://e6600512df57797f4fd551f8f8adf187@o4506869614903296.ingest.us.sentry.io/4508098677374976",
dsn: 'https://e6600512df57797f4fd551f8f8adf187@o4506869614903296.ingest.us.sentry.io/4508098677374976',
integrations: [Sentry.replayIntegration()],
// Tracing
// We recommend adjusting this value in production, or using a tracesSampler for finer control.
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
// Session Replay
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
});
})
8 changes: 4 additions & 4 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as Sentry from "@sentry/nuxt";
import * as Sentry from '@sentry/nuxt'

Sentry.init({
dsn: "https://e6600512df57797f4fd551f8f8adf187@o4506869614903296.ingest.us.sentry.io/4508098677374976",
dsn: 'https://e6600512df57797f4fd551f8f8adf187@o4506869614903296.ingest.us.sentry.io/4508098677374976',
// Tracing
// We recommend adjusting this value in production, or using a tracesSampler for finer control.
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
});
tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
})
34 changes: 17 additions & 17 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ export default {
theme: {
extend: {
colors: {
beige: "#F4E9E1",
mustard: "#f2cb50",
"light-blue": "#D3E6EF",
"light-pink": "#fad7d9",
"primary-pink": "#FFBBBE",
"voice-orange": "#F2682F",
"advice-green": "#00A463",
"primary-blue": "#307CBF",
"primary-red": "#E74C3C",
'beige': '#F4E9E1',
'mustard': '#f2cb50',
'light-blue': '#D3E6EF',
'light-pink': '#fad7d9',
'primary-pink': '#FFBBBE',
'voice-orange': '#F2682F',
'advice-green': '#00A463',
'primary-blue': '#307CBF',
'primary-red': '#E74C3C',
},
screens: {
// This is just to allow more breakpoints smaller than the default, can be changed to something else
xxs: "320px",
xs: "476px",
"3xl": "1650px",
max: "1900px",
'xxs': '320px',
'xs': '476px',
'3xl': '1650px',
'max': '1900px',
},
},
fontFamily: {
sans: ["soleil", "inter", "sans-serif"],
serif: ["rooney-web", "serif"],
sans: ['soleil', 'inter', 'sans-serif'],
serif: ['rooney-web', 'serif'],
},
container: {
padding: {
DEFAULT: "1rem",
DEFAULT: '1rem',
},
},
},
plugins: [],
};
}

0 comments on commit 9f08efe

Please sign in to comment.