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

Update linter setup #32

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 2 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37915,13 +37915,13 @@ async function changedLines(opts) {
const result = {};
let currentFile = null;
for (const line of stdout.split('\n')) {
const fileHeader = line.match(/^\+\+\+ b\/(.*)/);
const fileHeader = /^\+\+\+ b\/(.*)/.exec(line);
if (fileHeader?.[1]) {
currentFile = fileHeader[1];
result[currentFile] = new (lib_default())();
continue;
}
const changeHeader = line.match(/^@@ .* \+(\d+)(,\d+)?/);
const changeHeader = /^@@ .* \+(\d+)(,\d+)?/.exec(line);
if (changeHeader) {
const start = Number(changeHeader[1]);
const count = changeHeader[2] ? Number(changeHeader[2].slice(1)) : 1;
Expand Down Expand Up @@ -38104,7 +38104,6 @@ async function src_run() {
startLine: line.low,
endLine: line.high
};
// eslint-disable-next-line no-console
console.log(data);
core.warning('This change is not covered by tests', data);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import tseslint from 'typescript-eslint';
export default tseslint.config(
// Global ignores
{
ignores: ['dist/*']
ignores: ['dist/*', 'eslint.config.js', 'jest.config.js', 'test-fixture/**/*']
},
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-member-access
eslint.configs.recommended,
Expand Down
Loading
Loading