-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pkg] Update eslint to version 9.0.0
- Loading branch information
Showing
5 changed files
with
33 additions
and
23 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,28 @@ | ||
'use strict'; | ||
|
||
const pluginPrettierRecommended = require('eslint-plugin-prettier/recommended'); | ||
const globals = require('globals'); | ||
const js = require('@eslint/js'); | ||
|
||
module.exports = [ | ||
js.configs.recommended, | ||
{ | ||
ignores: ['.nyc_output/', '.vscode/', 'coverage/', 'node_modules/'], | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
globals: { | ||
...globals.browser, | ||
...globals.mocha, | ||
...globals.node | ||
}, | ||
sourceType: 'module' | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
'no-unused-vars': ['error', { caughtErrors: 'none' }], | ||
'no-var': 'error', | ||
'prefer-const': 'error' | ||
} | ||
}, | ||
pluginPrettierRecommended | ||
]; |
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
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
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