Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to the new version of eslint
Hooray, a new config file format.
- Loading branch information
Showing
8 changed files
with
321 additions
and
360 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 @@ | ||
const globals = require('globals') | ||
|
||
module.exports = { | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
globals: { ...globals.node }, | ||
}, | ||
plugins: { | ||
jest: { | ||
globals: true, | ||
}, | ||
}, | ||
rules: { | ||
indent: ['error', 2, { SwitchCase: 1, ignoredNodes: ['TemplateLiteral *'] }], | ||
'linebreak-style': 'off', // Changed from 0 to 'off' to use string values | ||
quotes: ['error', 'single'], | ||
'comma-dangle': ['error', 'always-multiline'], | ||
semi: ['error', 'never'], | ||
'no-console': 'error', | ||
}, | ||
} |
Oops, something went wrong.