Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Nov 2, 2024
1 parent 95fabc3 commit fefb7e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import fs from 'fs';

const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));

class GraphResolverLoader extends ResourceInterface {
class GraphJsonResolverLoader extends ResourceInterface {
constructor(compilation) {
super(compilation);
}

shouldResolve(url) {
return url.pathname === '/graph.json' && process.env.__GWD_COMMAND__ === 'develop';
return url.pathname === '/graph.json' && process.env.__GWD_COMMAND__ === 'develop'; // eslint-disable-line no-underscore-dangle
}

resolve() {
Expand All @@ -34,7 +34,7 @@ const greenwoodThemeStarterPresentation = (options = {}) => [{
}, {
type: 'resource',
name: `${packageJson.name}:resource`,
provider: (compilation) => new GraphResolverLoader(compilation)
provider: (compilation) => new GraphJsonResolverLoader(compilation)
}];

export {
Expand Down

0 comments on commit fefb7e6

Please sign in to comment.