Skip to content

Commit

Permalink
Fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Jan 1, 2025
1 parent 9144555 commit af3c17b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { FlatCompat } from '@eslint/eslintrc'
const compat = new FlatCompat()

import eslintPluginLocal from './eslint-plugin-local/index.mjs'

const compat = new FlatCompat()

export default [
// standard,
...compat.extends('eslint-config-standard'),
{
files: ['**/**.js', '**/**.mjs'],
languageOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
ecmaVersion: 'latest'
},
plugins: { 'local': eslintPluginLocal },
plugins: { local: eslintPluginLocal },
rules: {
/*
This is inserted to make this compatible with prettier.
Expand All @@ -21,7 +21,7 @@ export default [
'space-before-function-paren': 0,
curly: [2, 'all'],
'local/no-big-int': 'error',
'no-undef': 'warn',
},
},
'no-undef': 'warn'
}
}
]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@babel/core": "^7.17.10",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@eslint/eslintrc": "^3.2.0",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-inject": "^4.0.4",
"@rollup/plugin-node-resolve": "^13.3.0",
Expand Down

0 comments on commit af3c17b

Please sign in to comment.