-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First pass on default linting config * Change 'no-empty' to 'warn' in eslint config
- Loading branch information
Showing
5 changed files
with
1,133 additions
and
104 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,22 @@ | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
import eslintConfigEslint from 'eslint-config-eslint'; | ||
|
||
export default [ | ||
{ files: ['**/*.{js,mjs,cjs}'] }, | ||
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } }, | ||
js.configs.recommended, | ||
{ | ||
files: ['**/*.{js,mjs,cjs}'], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
}, | ||
rules: { | ||
...eslintConfigEslint.rules, | ||
// TODO: Remove these exceptions once TypeScript conversion happens | ||
'no-empty': 'warn', | ||
'no-unused-vars': 'warn', | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.