Skip to content

Commit

Permalink
Remove ESLint exceptions from unlinted files
Browse files Browse the repository at this point in the history
ESLint is only run on files under src/, so these are not necessary.
  • Loading branch information
victorlin committed Apr 25, 2023
1 parent 174dc52 commit 82e266f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/server/convertJsonSchemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const setAuthorInfoOnTree = (v2, meta) => {
* The feature information was an object with properties `start`, `end` and `strand`
*/
const convertToGffFormat = (annotations) => {
for (const name in annotations) { // eslint-disable-line
for (const name in annotations) {
// Convert from 0-based BED format to 1-based GFF format for start position
annotations[name].start += 1;
// half-open 0-based BED end position is the same as 1-based closed ended GFF position.
Expand Down
2 changes: 1 addition & 1 deletion cli/server/getDataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const getAvailable = require("./getAvailable");
const helpers = require("./getDatasetHelpers");

const setUpGetDatasetHandler = ({datasetsPath}) => {
return async (req, res) => { // eslint-disable-line consistent-return
return async (req, res) => {
try {
const availableDatasets = await getAvailable.getAvailableDatasets(datasetsPath);
const info = helpers.interpretRequest(req, datasetsPath);
Expand Down
2 changes: 1 addition & 1 deletion cli/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const loadAndAddHandlers = ({app, handlersArg, datasetDir, narrativeDir}) => {
if (handlersArg) {
const handlersPath = path.resolve(handlersArg);
utils.verbose(`Loading handlers from ${handlersPath}`);
const inject = require(handlersPath); // eslint-disable-line
const inject = require(handlersPath);
handlers.getAvailable = inject.getAvailable;
handlers.getDataset = inject.getDataset;
handlers.getNarrative = inject.getNarrative;
Expand Down
2 changes: 1 addition & 1 deletion scripts/extract-release-notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function main() {
releaseNotes.push(content[i]);
}
}
console.log(releaseNotes.join("\n")); // eslint-disable-line no-console
console.log(releaseNotes.join("\n"));
}

main();
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const generateConfig = ({extensionPath, devMode=false, customOutputPath, analyze
];

if (analyzeBundle) {
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; // eslint-disable-line
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
plugins.push(new BundleAnalyzerPlugin());
}

Expand Down

0 comments on commit 82e266f

Please sign in to comment.