Skip to content

Commit

Permalink
🔧 Configure linter
Browse files Browse the repository at this point in the history
  • Loading branch information
superbuggy committed Oct 23, 2024
1 parent f4f2574 commit af98415
Show file tree
Hide file tree
Showing 5 changed files with 1,678 additions and 384 deletions.
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const eslintRecommended = require("@eslint/js");
const globals = require("globals");
module.exports = [
eslintRecommended.configs.recommended,
{
rules: {
globals: {
...globals.browser,
...globals.node,
...globals.jest,
}
}
}
];
15 changes: 15 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"target": "ES2020",
"jsx": "react",
"allowImportingTsExtensions": true,
"strictNullChecks": true,
"strictFunctionTypes": true
},
"exclude": [
"node_modules",
"**/node_modules/*"
]
}
Loading

0 comments on commit af98415

Please sign in to comment.