Skip to content

Commit af3c17b

Browse files
Fix eslint config
1 parent 9144555 commit af3c17b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

eslint.config.mjs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { FlatCompat } from '@eslint/eslintrc'
2-
const compat = new FlatCompat()
3-
42
import eslintPluginLocal from './eslint-plugin-local/index.mjs'
53

4+
const compat = new FlatCompat()
5+
66
export default [
77
// standard,
88
...compat.extends('eslint-config-standard'),
99
{
1010
files: ['**/**.js', '**/**.mjs'],
1111
languageOptions: {
1212
sourceType: 'module',
13-
ecmaVersion: 'latest',
13+
ecmaVersion: 'latest'
1414
},
15-
plugins: { 'local': eslintPluginLocal },
15+
plugins: { local: eslintPluginLocal },
1616
rules: {
1717
/*
1818
This is inserted to make this compatible with prettier.
@@ -21,7 +21,7 @@ export default [
2121
'space-before-function-paren': 0,
2222
curly: [2, 'all'],
2323
'local/no-big-int': 'error',
24-
'no-undef': 'warn',
25-
},
26-
},
24+
'no-undef': 'warn'
25+
}
26+
}
2727
]

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"@babel/core": "^7.17.10",
5757
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
5858
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
59+
"@eslint/eslintrc": "^3.2.0",
5960
"@rollup/plugin-commonjs": "^22.0.0",
6061
"@rollup/plugin-inject": "^4.0.4",
6162
"@rollup/plugin-node-resolve": "^13.3.0",

0 commit comments

Comments
 (0)