Skip to content

Commit

Permalink
feat: uddate eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Jan 14, 2025
1 parent f229991 commit 724751b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 30 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',
},
},
];

0 comments on commit 724751b

Please sign in to comment.