Skip to content

Commit

Permalink
refactor: Update eslint (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored Jan 16, 2025
1 parent 99e6751 commit c1a85ec
Show file tree
Hide file tree
Showing 4 changed files with 399 additions and 350 deletions.
30 changes: 0 additions & 30 deletions .eslintrc.json

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export default [
{
files: ['**/*.js'], // Apply to JavaScript files.
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
Parse: 'readonly', // Define global variables here.
},
},
rules: {
indent: ['error', 2, { SwitchCase: 1 }],
'linebreak-style': ['error', 'unix'],
'no-trailing-spaces': 'error',
'eol-last': 'error',
'space-in-parens': ['error', 'never'],
'no-multiple-empty-lines': 'warn',
'prefer-const': 'error',
'space-infix-ops': 'error',
'no-useless-escape': 'off',
'require-atomic-updates': 'off',
'no-var': 'warn',
'no-await-in-loop': 'warn',
},
},
];
Loading

0 comments on commit c1a85ec

Please sign in to comment.