Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan4m1 committed Nov 18, 2024
1 parent fb4fdfe commit a76f4ba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 710 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,10 @@
},
"devDependencies": {
"@babel/eslint-parser": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.25.9",
"@eslint/js": "^9.15.0",
"@typescript-eslint/parser": "^8.14.0",
"babel-plugin-prismjs": "^2.1.0",
"babel-preset-gatsby": "^3.14.0",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-node": "^0.3.9",
Expand Down
2 changes: 1 addition & 1 deletion src/components/bom-sheet-maker/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function Sidebar({

setGroups(newGroups);
setFieldError('bomText', null);
} catch (error) {
} catch {
setFieldError('bomText', 'Invalid file selected.');
}
},
Expand Down
3 changes: 1 addition & 2 deletions src/utils/units.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import configureMeasurements from 'convert-units';
// eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import-x/no-unresolved
import length from 'convert-units/definitions/length';

const imperial = {
Expand All @@ -9,7 +9,6 @@ const imperial = {
singular: 'Mil',
plural: 'Mils'
},
// eslint-disable-next-line camelcase
to_anchor: 1 / 12000
}
};
Expand Down
Loading

0 comments on commit a76f4ba

Please sign in to comment.