Skip to content

Commit

Permalink
fix(backend): fix wrong plugin name, fix node config not an array
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauNeko committed Dec 18, 2024
1 parent 6246dfb commit 6499c63
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/backend/lib/configs/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const defaultConfig = (plugin: TSESLint.FlatConfig.Plugin): TSESLint.FlatConfig.
js.configs.recommended,
{
plugins: {
[plugin.meta!.name!]: plugin,
kuzzle: plugin,
},
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
Expand Down
26 changes: 14 additions & 12 deletions packages/backend/lib/configs/node.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import { Linter } from 'eslint';
import globals from 'globals';

const nodeConfig: Linter.Config = {
languageOptions: {
ecmaVersion: 2018,
globals: {
...globals.node,
...globals.es2018,
...globals.mocha,
},
parserOptions: {
ecmaFeatures: {
impliedStrict: false,
const nodeConfig: Linter.Config[] = [
{
languageOptions: {
ecmaVersion: 2018,
globals: {
...globals.node,
...globals.es2018,
...globals.mocha,
},
parserOptions: {
ecmaFeatures: {
impliedStrict: false,
},
},
},
},
};
];

export default nodeConfig;

0 comments on commit 6499c63

Please sign in to comment.