Skip to content

Commit

Permalink
Upgrade eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Jan 2, 2025
1 parent bba1ed9 commit 25b2a4f
Show file tree
Hide file tree
Showing 3 changed files with 4,068 additions and 2,551 deletions.
26 changes: 26 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import arc from '@architect/eslint-config'
import importPlugin from 'eslint-plugin-import'

export default [
...arc,
{
languageOptions: {
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module'
}
},
plugins: {
import: importPlugin.flatConfigs.recommended.plugins.import
},
rules: {
'import/no-commonjs': 'error',
'import/extensions': [
'error',
'ignorePackages'
],
// Additive to our old `import` config, but everything seems quite sane!
...importPlugin.flatConfigs.recommended.rules,
}
},
]
Loading

0 comments on commit 25b2a4f

Please sign in to comment.