Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sync vitest compatible rules with jest rules #241

Merged
merged 5 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into fix-sync-jest-and-vitest-compatible-rules
  • Loading branch information
Sysix committed Dec 6, 2024
commit 3e295bb649fc7a49693f0a20cc80759ef4d596e1
8 changes: 8 additions & 0 deletions src/__snapshots__/configs.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1487,5 +1487,13 @@ exports[`contains all the oxlint rules 1`] = `
"vitest/valid-expect": [
0,
],
"yoda": [
0,
"never",
{
"exceptRange": false,
"onlyEquality": false,
},
],
}
`;
11 changes: 11 additions & 0 deletions src/build-from-oxlint-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,17 @@ describe('buildFromOxlintConfig', () => {
}
});
}

describe('ignorePattern Property', () => {
it('should append ignorePatterns to eslint v9 ignore property', () => {
const configs = buildFromOxlintConfig({
ignorePatterns: ['./tests/.*ts'],
});

expect(configs.length).toBe(1);
expect(configs[0].ignores).toStrictEqual(['./tests/.*ts']);
});
});
});

const createConfigFileAndBuildFromIt = (
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.