Skip to content

Commit

Permalink
Merge pull request #452 from sanger/depfu/update/npm/eslint-9.6.0
Browse files Browse the repository at this point in the history
Update eslint 8.57.0 → 9.6.0 (major)
  • Loading branch information
BenTopping authored Jul 12, 2024
2 parents 1517c6e + 4c44147 commit faf1aec
Show file tree
Hide file tree
Showing 10 changed files with 272 additions and 119 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc.cjs

This file was deleted.

42 changes: 42 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import js from '@eslint/js'
import eslintConfigPrettier from 'eslint-config-prettier'
import pluginVue from 'eslint-plugin-vue'
import globals from 'globals'

export default [
...pluginVue.configs['flat/recommended'],
js.configs.recommended,
eslintConfigPrettier,
{
rules: {
'no-console': 'off', // It may be worth re-enabling this is we add proper error logging
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'prefer-const': [
'error',
{
destructuring: 'all',
},
],
'vue/no-v-model-argument': 'off',
'vue/multi-word-component-names': 'off',
'vue/require-prop-types': 'off',
},
},
{
ignores: ['dist/**/*.js'],
},
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
...globals.node,
...globals.jest,
// Global vitest and Cypress variables so they don't violate no-undef
vi: 'readonly',
cy: 'readonly',
Cypress: 'readonly',
},
},
},
]
Loading

0 comments on commit faf1aec

Please sign in to comment.