Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Jun 2, 2024
1 parent 9488cf9 commit fb0c2a6
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 4 deletions.
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const js = require('@eslint/js');


module.exports = [
{
ignores: ['examples/libs']
},
js.configs.recommended,
{
languageOptions: {
Expand Down
2 changes: 1 addition & 1 deletion examples/lesson02.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const shaders = {
const initContext = (canvas) => {
try {
gl = canvas.getContext('webgl');
} catch (e) {
} catch (_e) {
console.error('Could not initialise WebGL, sorry :-(');
process.exit(-1);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/lesson05.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const shaders = {
const initContext = (canvas) => {
try {
gl = canvas.getContext('webgl');
} catch (e) {
} catch (_e) {
console.error('Could not initialise WebGL, sorry :-(');
process.exit(-1);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/lesson08.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const shaders = {
const initContext = (canvas) => {
try {
gl = canvas.getContext('webgl');
} catch (e) {
} catch (_e) {
console.error('Could not initialise WebGL, sorry :-(');
process.exit(-1);
}
Expand Down
102 changes: 102 additions & 0 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/screen_aligned.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let shaders = {
const initContext = (canvas) => {
try {
gl = canvas.getContext('webgl');
} catch (e) {
} catch (_e) {
console.error('Could not initialise WebGL, sorry :-(');
process.exit(-1);
}
Expand Down

0 comments on commit fb0c2a6

Please sign in to comment.