mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-09 19:09:07 +00:00
* On every route change, update local variables from query params * ResultSection is keyed to query to force re-render * Feat: vite & upgraded dependencies (#100) * On every route change, update local variables from query params * ResultSection is keyed to query to force re-render * Resolved lint warnings * replace webpack w/ vite * update all imports with alias @ and scss * vite environment variables, also typed * upgraded eslint, defined new rules & added ignore comments * resolved linting issues * moved index.html to project root * updated dockerfile w/ build stage before runtime image definition * sign drone config * dynamic colors from poster for popup bg & text colors * more torrents nav button now link elem & better for darker bg * make list item title clickable * removed extra no-shadow eslint rule definitions * fixed movie import * adhere to eslint rules & package.json clean command * remove debounce autocomplete search, track & hault on failure
67 lines
1.5 KiB
JavaScript
67 lines
1.5 KiB
JavaScript
import path from "node:path";
|
|
|
|
import { includeIgnoreFile } from "@eslint/compat";
|
|
import js from "@eslint/js";
|
|
import { defineConfig } from "eslint/config";
|
|
import { configs, plugins } from "eslint-config-airbnb-extended";
|
|
import { rules as prettierConfigRules } from "eslint-config-prettier";
|
|
import prettierPlugin from "eslint-plugin-prettier";
|
|
|
|
const CUSTOM_RULES = {
|
|
"vue/no-v-model-argument": "off",
|
|
"no-underscore-dangle": "off",
|
|
"vue/multi-word-component-names": "off"
|
|
};
|
|
|
|
const gitignorePath = path.resolve(".", ".gitignore");
|
|
|
|
// ESLint recommended config
|
|
const jsConfig = defineConfig([
|
|
{
|
|
name: "js/config",
|
|
...js.configs.recommended
|
|
},
|
|
plugins.stylistic,
|
|
plugins.importX,
|
|
...configs.base.recommended // Airbnb base recommended config
|
|
]);
|
|
|
|
// Node & Airbnb recommended config
|
|
const nodeConfig = defineConfig([plugins.node, ...configs.node.recommended]);
|
|
|
|
// Typescript & Airbnb base TS config
|
|
const typescriptConfig = defineConfig([
|
|
plugins.typescriptEslint,
|
|
...configs.base.typescript
|
|
// rules.typescript.typescriptEslintStrict
|
|
]);
|
|
|
|
// Prettier config
|
|
const prettierConfig = defineConfig([
|
|
{
|
|
name: "prettier/plugin/config",
|
|
plugins: {
|
|
prettier: prettierPlugin
|
|
}
|
|
},
|
|
{
|
|
name: "prettier/config",
|
|
rules: {
|
|
...prettierConfigRules,
|
|
"prettier/prettier": "error"
|
|
}
|
|
}
|
|
]);
|
|
|
|
export default defineConfig([
|
|
// Ignore files and folders listed in .gitignore
|
|
includeIgnoreFile(gitignorePath),
|
|
...jsConfig,
|
|
...nodeConfig,
|
|
...typescriptConfig,
|
|
...prettierConfig,
|
|
{
|
|
rules: CUSTOM_RULES
|
|
}
|
|
]);
|