Skip to content

Commit

Permalink
test another way
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Feb 28, 2025
1 parent 474b2a9 commit ae0db24
Show file tree
Hide file tree
Showing 5 changed files with 1,834 additions and 45 deletions.
58 changes: 58 additions & 0 deletions .github/settings/doc-lint-and-validate/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import eslintJs from "@eslint/js";
import tseslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import prettierConfig from "eslint-config-prettier";

export default [
// Base ESLint recommended rules
eslintJs.configs.recommended,

// Prettier configuration to avoid conflicts
prettierConfig,

// TypeScript specific configuration
{
files: ["**/*.ts", "**/*.tsx"],
plugins: {
"@typescript-eslint": tseslint
},
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 2021,
sourceType: "module",
project: "./tsconfig.json"
}
},
rules: {
// TypeScript rules
...tseslint.configs.recommended.rules,
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-function-return-type": "off"
}
},

// Global configuration
{
ignores: ["node_modules/**"],
languageOptions: {
ecmaVersion: 2021,
sourceType: "module",
globals: {
// Node.js globals
process: "readonly",
console: "readonly",
// Jest globals
jest: "readonly",
expect: "readonly",
test: "readonly",
describe: "readonly",
beforeEach: "readonly",
afterEach: "readonly"
}
},
linterOptions: {
reportUnusedDisableDirectives: true
}
}
];
Loading

0 comments on commit ae0db24

Please sign in to comment.