Skip to content

Commit

Permalink
eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
egoroof committed Apr 6, 2024
1 parent 3dbc365 commit b827b53
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 269 deletions.
23 changes: 0 additions & 23 deletions .eslintrc.js

This file was deleted.

22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import js from '@eslint/js';

export default [
js.configs.recommended,
{
languageOptions: {
globals: {
URL: 'readonly',
Blob: 'readonly',
console: 'readonly',
},
},
rules: {
'no-var': 2, // require let or const instead of var
'prefer-arrow-callback': 2, // suggest using arrow functions as callbacks
'prefer-const': 2, // suggest using const declaration for variables that are never modified after declared
'prefer-rest-params': 2, // suggest using the rest parameters instead of arguments
'prefer-spread': 2, // suggest using the spread operator instead of .apply().
'prefer-template': 2, // suggest using template literals instead of strings concatenation
},
},
];

0 comments on commit b827b53

Please sign in to comment.