Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend linting #284

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .eslintrc.js

This file was deleted.

16 changes: 16 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// @ts-check
import withNuxt from "./.nuxt/eslint.config.mjs";

export default withNuxt({
rules: {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
},
],
},
});
69 changes: 43 additions & 26 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,46 @@
// https://v3.nuxtjs.org/api/configuration/nuxt.config

export default defineNuxtConfig({
ssr: false,
app: {
head: {
title: "Bootstrap Academy",
link: [{ rel: "manifest", href: "manifest.txt" }],
},
pageTransition: { name: "page", mode: "out-in" },
layoutTransition: { name: "layout", mode: "out-in" },
},
css: ["~/assets/css/tailwind.css"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
runtimeConfig: {
public: {
BASE_API_URL: "https://api.test.bootstrap.academy",
BASE_WEB_URL: "https://test.bootstrap.academy",
Gleap_API_KEY: "8TVLuULNmWxZHIifA1PW6TYHUCKEb5so",
Vue3ReCaptcha_SITE_KEY: "6Ldb070iAAAAAKsAt_M_ilgDbnWcF-N_Pj2DBBeP",
NODE_ENV: "production",
},
},
});
ssr: false,

app: {
head: {
title: 'Bootstrap Academy',
link: [{ rel: 'manifest', href: 'manifest.txt' }],
},
pageTransition: { name: 'page', mode: 'out-in' },
layoutTransition: { name: 'layout', mode: 'out-in' },
},

css: ['~/assets/css/tailwind.css'],

postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},

runtimeConfig: {
public: {
BASE_API_URL: 'https://api.test.bootstrap.academy',
BASE_WEB_URL: 'https://test.bootstrap.academy',
Gleap_API_KEY: '8TVLuULNmWxZHIifA1PW6TYHUCKEb5so',
Vue3ReCaptcha_SITE_KEY: '6Ldb070iAAAAAKsAt_M_ilgDbnWcF-N_Pj2DBBeP',
NODE_ENV: 'production',
},
},

modules: ['@nuxt/eslint'],
eslint: {
config: {
stylistic: {
semi: false,
indent: 'tab',
},
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
},
},
},
})
Loading
Loading