Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

28 changes: 0 additions & 28 deletions .eslintrc.js

This file was deleted.

46 changes: 46 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
const {
defineConfig,
globalIgnores,
} = require("eslint/config");

const globals = require("globals");

module.exports = defineConfig([{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.amd,
"luxon": "readonly",
"XLSX": "readonly",
"jspdf": "readonly",
},

"ecmaVersion": "latest",
"sourceType": "module",
parserOptions: {},
},

"rules": {
"semi": "error",

"indent": ["error", "tab", {
VariableDeclarator: 0,
"SwitchCase": 1,
}],

"no-unused-vars": ["warn", {
"vars": "all",
"args": "none",
"ignoreRestSiblings": false,
}],

"no-fallthrough": "off",
"no-inner-declarations": "off",
"no-prototype-builtins": "off",

"no-empty": ["error", {
"allowEmptyCatch": true,
}],
},
}, globalIgnores(["**/.eslintrc.js", "**/dist", "**/examples"])]);
Loading
Loading