Skip to content

Commit

Permalink
Add eslint config file that is up to spec
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSBrown committed Jan 2, 2025
1 parent 5c549a2 commit 15a08cf
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
const { defineConfig } = require('eslint-define-config');

module.exports = defineConfig({
env: {
browser: false,
node: true,
es2021: true,
},
extends: ['eslint:recommended'],
rules: {
'no-console': 'warn',
},
});
const globals = require("globals");

const customGlobals = {
TomSelect: "readable",
};

module.exports = [{
languageOptions: {
globals: {
...customGlobals,
...globals.jquery,
...globals.node,
},
},
}];

0 comments on commit 15a08cf

Please sign in to comment.