Skip to content

Commit

Permalink
build: update all deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aniravi24 committed Feb 13, 2025
1 parent e2ba94b commit fcc4830
Show file tree
Hide file tree
Showing 46 changed files with 2,250 additions and 2,100 deletions.
138 changes: 69 additions & 69 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,114 +13,114 @@ const scopes = JSON.parse(turboOutput)

/** @type {import('cz-git').UserConfig} */
module.exports = {
// I'm just putting something in here because this rules key can't be empty
// If you see red underline in the rules object, make sure it's not "LintLens", that's just a false positive from ESLint VSCode extension
rules: {
// @see: https://commitlint.js.org/#/reference-rules
"header-max-length": [2, "always", 120],
"scope-case": [0],
"subject-case": [0],
},
prompt: {
aiNumber: 1,
allowBreakingChanges: ["feat", "fix"],
allowCustomIssuePrefix: true,
allowCustomScopes: true,
allowEmptyIssuePrefix: true,
allowEmptyScopes: true,
breaklineChar: "|",
breaklineNumber: 100,
confirmColorize: true,
customIssuePrefixAlias: "custom",
customIssuePrefixAlign: "top",
customScopesAlias: "custom",
customScopesAlign: "top",
defaultBody: "",
defaultIssues: "",
defaultScope: "",
defaultSubject: "",
emojiAlign: "center",
emptyIssuePrefixAlias: "skip",
emptyScopesAlias: "empty",
issuePrefixes: [
{ name: "closed: ISSUES has been processed", value: "closed" },
],
markBreakingChangeMode: false,
maxHeaderLength: 120,
maxSubjectLength: Infinity,
// alias: { fd: "docs: fix typos" },
messages: {
type: "Select the type of change that you're committing:",
scope: "Denote the SCOPE of this change (optional):",
customScope: "Denote the SCOPE of this change:",
subject: "Write a SHORT, IMPERATIVE tense description of the change:\n",
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
breaking:
'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
footerPrefixSelect:
"Select the ISSUES type of changeList by this change (optional):",
confirmCommit: "Are you sure you want to proceed with the commit above?",
customFooterPrefix: "Input ISSUES prefix:",
customScope: "Denote the SCOPE of this change:",
footer: "List any ISSUES by this change. E.g.: #31, #34:\n",
generatingByAI: "Generating your AI commit subject...",
footerPrefixSelect:
"Select the ISSUES type of changeList by this change (optional):",
generatedSelectByAI: "Select suitable subject by AI generated:",
confirmCommit: "Are you sure you want to proceed with the commit above?",
generatingByAI: "Generating your AI commit subject...",
scope: "Denote the SCOPE of this change (optional):",
subject: "Write a SHORT, IMPERATIVE tense description of the change:\n",
type: "Select the type of change that you're committing:",
},
minSubjectLength: 0,
scopeOverrides: undefined,
scopes,
skipQuestions: [],
themeColorCode: "",
types: [
{ value: "feat", name: "feat: A new feature", emoji: ":sparkles:" },
{ value: "fix", name: "fix: A bug fix", emoji: ":bug:" },
{ emoji: ":sparkles:", name: "feat: A new feature", value: "feat" },
{ emoji: ":bug:", name: "fix: A bug fix", value: "fix" },
{
value: "docs",
name: "docs: Documentation only changes",
emoji: ":memo:",
name: "docs: Documentation only changes",
value: "docs",
},
{
value: "style",
name: "style: Changes that do not affect the meaning of the code",
emoji: ":lipstick:",
name: "style: Changes that do not affect the meaning of the code",
value: "style",
},
{
value: "refactor",
name: "refactor: A code change that neither fixes a bug nor adds a feature",
emoji: ":recycle:",
name: "refactor: A code change that neither fixes a bug nor adds a feature",
value: "refactor",
},
{
value: "perf",
name: "perf: A code change that improves performance",
emoji: ":zap:",
name: "perf: A code change that improves performance",
value: "perf",
},
{
value: "test",
name: "test: Adding missing tests or correcting existing tests",
emoji: ":white_check_mark:",
name: "test: Adding missing tests or correcting existing tests",
value: "test",
},
{
value: "build",
name: "build: Changes that affect the build system or external dependencies",
emoji: ":package:",
name: "build: Changes that affect the build system or external dependencies",
value: "build",
},
{
value: "ci",
name: "ci: Changes to our CI configuration files and scripts",
emoji: ":ferris_wheel:",
name: "ci: Changes to our CI configuration files and scripts",
value: "ci",
},
{
value: "chore",
name: "chore: Other changes that don't modify src or test files",
emoji: ":hammer:",
name: "chore: Other changes that don't modify src or test files",
value: "chore",
},
{
value: "revert",
name: "revert: Reverts a previous commit",
emoji: ":rewind:",
name: "revert: Reverts a previous commit",
value: "revert",
},
],
useEmoji: false,
emojiAlign: "center",
useAI: false,
aiNumber: 1,
themeColorCode: "",
scopes,
allowCustomScopes: true,
allowEmptyScopes: true,
customScopesAlign: "top",
customScopesAlias: "custom",
emptyScopesAlias: "empty",
upperCaseSubject: false,
markBreakingChangeMode: false,
allowBreakingChanges: ["feat", "fix"],
breaklineNumber: 100,
breaklineChar: "|",
skipQuestions: [],
issuePrefixes: [
{ value: "closed", name: "closed: ISSUES has been processed" },
],
customIssuePrefixAlign: "top",
emptyIssuePrefixAlias: "skip",
customIssuePrefixAlias: "custom",
allowCustomIssuePrefix: true,
allowEmptyIssuePrefix: true,
confirmColorize: true,
maxHeaderLength: 120,
maxSubjectLength: Infinity,
minSubjectLength: 0,
scopeOverrides: undefined,
defaultBody: "",
defaultIssues: "",
defaultScope: "",
defaultSubject: "",
useAI: false,
useEmoji: false,
},
// I'm just putting something in here because this rules key can't be empty
// If you see red underline in the rules object, make sure it's not "LintLens", that's just a false positive from ESLint VSCode extension
rules: {
// @see: https://commitlint.js.org/#/reference-rules
"header-max-length": [2, "always", 120],
"scope-case": [0],
"subject-case": [0],
},
};
70 changes: 0 additions & 70 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:
inputs:
generate_docs:
description: 'Generate and deploy docs'
description: "Generate and deploy docs"
required: true
default: false
type: boolean
Expand Down
111 changes: 111 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
import sortKeys from "eslint-plugin-sort-keys";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import _import from "eslint-plugin-import";
import typescriptSortKeys from "eslint-plugin-typescript-sort-keys";
import { fixupPluginRules } from "@eslint/compat";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: [
"**/migrations",
"**/models",
"**/generated",
"**/dist",
"**/docs",
],
},
...compat.extends("prettier"),
{
files: ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.js", "**/*.jsx"],

plugins: {
"sort-keys": sortKeys,
},

rules: {
"sort-keys": "off",
"sort-keys/sort-keys-fix": "error",
},
},
...compat
.extends(
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
)
.map((config) => ({
...config,
files: ["**/*.ts", "**/*.tsx", "**/*.mts"],
})),
{
files: ["**/*.ts", "**/*.tsx", "**/*.mts"],

plugins: {
"simple-import-sort": simpleImportSort,
import: fixupPluginRules(_import),
"typescript-sort-keys": typescriptSortKeys,
},

languageOptions: {
parser: tsParser,
ecmaVersion: 5,
sourceType: "script",

parserOptions: {
project: ["./tsconfig.json"],
},
},

rules: {
"@typescript-eslint/ban-ts-comment": [
"error",
{
minimumDescriptionLength: 3,
"ts-check": false,
"ts-expect-error": "allow-with-description",
},
],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/sort-type-constituents": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-explicit-any": "off",
eqeqeq: "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"no-extra-bind": "error",
"no-fallthrough": "error",
"no-invalid-regexp": "error",
"no-invalid-this": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"typescript-sort-keys/interface": "error",
},
},
];
Loading

0 comments on commit fcc4830

Please sign in to comment.