mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-05 23:15:58 -06:00
ci: implement comprehensive CI/CD and workflow automation
- Add GitHub Actions workflows for CI, release, and deployment - Configure Renovate for automated dependency updates - Set up Husky pre-commit hooks with lint-staged - Add commitlint for enforcing Conventional Commits - Configure semantic-release for automated versioning - Add Prettier configuration for consistent formatting - Reformat codebase with new formatting rules
This commit is contained in:
@@ -8,69 +8,69 @@ 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
|
||||
baseDirectory: __dirname,
|
||||
recommendedConfig: js.configs.recommended,
|
||||
allConfig: js.configs.all,
|
||||
});
|
||||
|
||||
export default [
|
||||
// Base configuration with ignores
|
||||
{
|
||||
ignores: [
|
||||
".next/**",
|
||||
"node_modules/**",
|
||||
"out/**",
|
||||
"*.config.mjs",
|
||||
"*.config.js",
|
||||
"next-env.d.ts" // Next.js generated file
|
||||
],
|
||||
},
|
||||
// Base configuration with ignores
|
||||
{
|
||||
ignores: [
|
||||
".next/**",
|
||||
"node_modules/**",
|
||||
"out/**",
|
||||
"*.config.mjs",
|
||||
"*.config.js",
|
||||
"next-env.d.ts", // Next.js generated file
|
||||
],
|
||||
},
|
||||
|
||||
// Next.js core web vitals using FlatCompat
|
||||
...compat.extends("next/core-web-vitals"),
|
||||
// Next.js core web vitals using FlatCompat
|
||||
...compat.extends("next/core-web-vitals"),
|
||||
|
||||
// TypeScript recommended rules
|
||||
...compat.extends("plugin:@typescript-eslint/recommended"),
|
||||
// TypeScript recommended rules
|
||||
...compat.extends("plugin:@typescript-eslint/recommended"),
|
||||
|
||||
// Base TypeScript configuration
|
||||
{
|
||||
plugins: {
|
||||
"@typescript-eslint": typescriptEslint,
|
||||
},
|
||||
// Base TypeScript configuration
|
||||
{
|
||||
plugins: {
|
||||
"@typescript-eslint": typescriptEslint,
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
parser: tsParser,
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
parserOptions: {
|
||||
project: "./tsconfig.json",
|
||||
},
|
||||
},
|
||||
languageOptions: {
|
||||
parser: tsParser,
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
parserOptions: {
|
||||
project: "./tsconfig.json",
|
||||
},
|
||||
},
|
||||
|
||||
rules: {
|
||||
"@typescript-eslint/consistent-type-imports": "warn",
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/consistent-type-imports": "warn",
|
||||
},
|
||||
},
|
||||
|
||||
// Additional strict TypeScript rules for .ts and .tsx files
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
...compat.extends("plugin:@typescript-eslint/recommended-requiring-type-checking")[0],
|
||||
// Additional strict TypeScript rules for .ts and .tsx files
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
...compat.extends("plugin:@typescript-eslint/recommended-requiring-type-checking")[0],
|
||||
|
||||
languageOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
parserOptions: {
|
||||
project: "./tsconfig.json",
|
||||
},
|
||||
},
|
||||
},
|
||||
languageOptions: {
|
||||
ecmaVersion: "latest",
|
||||
sourceType: "module",
|
||||
parserOptions: {
|
||||
project: "./tsconfig.json",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// Allow CommonJS require in .cjs files
|
||||
{
|
||||
files: ["**/*.cjs"],
|
||||
rules: {
|
||||
"@typescript-eslint/no-require-imports": "off",
|
||||
},
|
||||
},
|
||||
// Allow CommonJS require in .cjs files
|
||||
{
|
||||
files: ["**/*.cjs"],
|
||||
rules: {
|
||||
"@typescript-eslint/no-require-imports": "off",
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user