Skip to content

Commit

Permalink
eslint updates and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSD committed Feb 16, 2025
1 parent e6781f5 commit 83f799f
Show file tree
Hide file tree
Showing 10 changed files with 130 additions and 294 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/node_modules/
/yarn.lock
/.rpt2_cache/
/.tsbuildinfo
/dist/
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ module.exports = {
singleQuote: true,
printWidth: 120,
tabWidth: 2,
};
};
10 changes: 9 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ import globals from 'globals';

export default ts.config(
js.configs.recommended,
ts.configs.recommended,
ts.configs.strictTypeChecked,
ts.configs.stylisticTypeChecked,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['warn', {'argsIgnorePattern': '^_'}],
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
},
languageOptions: {
sourceType: 'module', // Allows for the use of imports
globals: {
...globals.browser,
},
parserOptions: {
tsconfigRootDir: import.meta.dirname,
projectService: true, // TypeScript type checking service
Expand Down
Loading

0 comments on commit 83f799f

Please sign in to comment.