Skip to content

Commit

Permalink
Merge pull request #712 from frog-pond/dependabot/npm_and_yarn/eslint…
Browse files Browse the repository at this point in the history
…-9.2.0

Bump eslint from 8.57.0 to 9.2.0
  • Loading branch information
hawkrives authored May 6, 2024
2 parents a438564 + 9178d04 commit d24ca3f
Show file tree
Hide file tree
Showing 10 changed files with 171 additions and 247 deletions.
53 changes: 0 additions & 53 deletions .eslintrc.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import js from '@eslint/js'
import globals from 'globals'

import prettier from 'eslint-config-prettier'

export default [
js.configs.recommended,
prettier,
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {...globals.node},
},
rules: {
'array-callback-return': 'error',
camelcase: ['warn', {properties: 'never', ignoreDestructuring: true}],
'consistent-this': ['error', 'self'],
curly: ['warn', 'multi-line'],
'default-case': 'error',
'guard-for-in': 'error',
eqeqeq: ['error', 'always', {null: 'ignore'}],
'linebreak-style': ['error', 'unix'],
'new-cap': 'off',
'no-await-in-loop': 'warn',
'no-case-declarations': 'error',
'no-confusing-arrow': 'off',
'no-console': 'off',
'no-div-regex': 'error',
'no-eq-null': 'warn',
'no-extra-label': 'error',
'no-implicit-coercion': [
'error',
{boolean: true, number: true, string: true},
],
'no-implicit-globals': 'error',
'no-multi-assign': 'error',
'no-new-symbol': 'error',
'no-restricted-syntax': ['error', 'WithStatement'],
'no-return-await': 'error',
'no-throw-literal': 'error',
'no-undef-init': 'off',
'no-underscore-dangle': 'off',
'no-unmodified-loop-condition': 'error',
'no-unused-vars': ['warn', {args: 'after-used', argsIgnorePattern: '^_'}],
'no-useless-constructor': 'error',
'no-var': 'error',
'prefer-promise-reject-errors': 'error',
'prefer-spread': 'error',
quotes: ['warn', 'single', 'avoid-escape'],
'require-await': 'warn',
semi: 'off',
},
},
]
Loading

0 comments on commit d24ca3f

Please sign in to comment.