Skip to content

Commit

Permalink
Update linter setup
Browse files Browse the repository at this point in the history
Bump eslint to v9 and typescript-eslint to v8
  • Loading branch information
lautis committed Aug 20, 2024
1 parent 12d696e commit fc709ae
Show file tree
Hide file tree
Showing 7 changed files with 381 additions and 411 deletions.
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

0 comments on commit fc709ae

Please sign in to comment.