Skip to content

Commit

Permalink
Upgrade to the new version of eslint
Browse files Browse the repository at this point in the history
Hooray, a new config file format.
  • Loading branch information
pcraig3 committed May 9, 2024
1 parent de53a32 commit be1d1ab
Show file tree
Hide file tree
Showing 8 changed files with 321 additions and 360 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

22 changes: 22 additions & 0 deletions eslint.config.js
@@ -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',
},
}

0 comments on commit be1d1ab

Please sign in to comment.