Skip to content

Commit

Permalink
chore: update dependency eslint to v9
Browse files Browse the repository at this point in the history
Based on work in loopbackio/loopback-connector#516

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Rifa Achrinza <[email protected]>
  • Loading branch information
achrinza and renovate[bot] committed Nov 14, 2024
1 parent ce09714 commit 1701d1e
Show file tree
Hide file tree
Showing 6 changed files with 308 additions and 159 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: FSFAP
# SPDX-FileCopyrightText: Copyright (c) 2024 Rifa Achrinza
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
max_line_length = 80
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ node_modules

# Optional REPL history
.node_repl_history

# Code editors
\#*#
*~
.#*
21 changes: 21 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-FileCopyrightText: Copyright LoopBack contributors 2024.
// SPDX-License-Identifier: MIT
import {FlatCompat} from '@eslint/eslintrc';
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
});

export default [
...compat.extends('loopback'),
{
languageOptions: {
ecmaVersion: 'latest',
},
},
{
files: ['**/*.js'],
languageOptions: {
sourceType: 'commonjs',
},
},
];
Loading

0 comments on commit 1701d1e

Please sign in to comment.