Skip to content

Commit

Permalink
Fix config syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pakaoraki committed Apr 23, 2024
1 parent e104878 commit 73d0ea6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// eslint.config.js
import gjsConfig from './lint/eslintrc-gjs.config.js';
import shellConfig from './lint/eslintrc-shell.config.js';

module.exports = {
import gjsConfig from "./lint/eslintrc-gjs.config.js";
import shellConfig from "./lint/eslintrc-shell.config.js";

export default [
gjsConfig,
shellConfig,
{
parserOptions: {
sourceType: 'module',
sourceType: 'module',
},
rules: {
// Rules overridden to match this codebase
Expand All @@ -17,4 +18,4 @@ module.exports = {
'prefer-template': 'off',
},
}
};
];
4 changes: 2 additions & 2 deletions lint/eslint-gjs.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default [
env: {
es2021: true,
},
Expand Down Expand Up @@ -189,4 +189,4 @@ module.exports = {
ecmaVersion: 2022,
sourceType: 'module',
},
};
];
4 changes: 2 additions & 2 deletions lint/eslint-shell.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-shell.config.js
module.exports = {
export default [
rules: {
camelcase: ['error', { properties: 'never', allow: ['^vfunc_', '^on_'] }],
'object-curly-spacing': ['error', 'always'],
Expand All @@ -8,4 +8,4 @@ module.exports = {
globals: {
global: 'readonly',
},
};
];

0 comments on commit 73d0ea6

Please sign in to comment.