mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-08-30 23:37:08 +00:00
34 lines
945 B
JavaScript
34 lines
945 B
JavaScript
import typescriptEslint from "typescript-eslint";
|
|
|
|
const repositoryRoot = new URL("../../", import.meta.url).pathname;
|
|
|
|
export function createSyntheticCommunityReviewConfig(project) {
|
|
return [
|
|
{
|
|
ignores: [
|
|
"**/*.unit.spec.ts",
|
|
"**/*.test.ts",
|
|
"**/test/**",
|
|
"src/apps/_test/**",
|
|
"src/apps/cli/testdeno/**",
|
|
],
|
|
},
|
|
{
|
|
files: ["src/**/*.ts"],
|
|
languageOptions: {
|
|
parser: typescriptEslint.parser,
|
|
parserOptions: {
|
|
project,
|
|
tsconfigRootDir: repositoryRoot,
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": typescriptEslint.plugin,
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-redundant-type-constituents": "warn",
|
|
},
|
|
},
|
|
];
|
|
}
|