-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
230 additions
and
268 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: { | ||
TextEncoder: 'readonly', | ||
TextDecoder: '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 | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.