Skip to content

Commit 1701d1e

Browse files
chore: update dependency eslint to v9
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]>
1 parent ce09714 commit 1701d1e

File tree

6 files changed

+308
-159
lines changed

6 files changed

+308
-159
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: FSFAP
2+
# SPDX-FileCopyrightText: Copyright (c) 2024 Rifa Achrinza
3+
root = true
4+
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2
11+
max_line_length = 80

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ node_modules
3131

3232
# Optional REPL history
3333
.node_repl_history
34+
35+
# Code editors
36+
\#*#
37+
*~
38+
.#*

eslint.config.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// SPDX-FileCopyrightText: Copyright LoopBack contributors 2024.
2+
// SPDX-License-Identifier: MIT
3+
import {FlatCompat} from '@eslint/eslintrc';
4+
const compat = new FlatCompat({
5+
baseDirectory: import.meta.dirname,
6+
});
7+
8+
export default [
9+
...compat.extends('loopback'),
10+
{
11+
languageOptions: {
12+
ecmaVersion: 'latest',
13+
},
14+
},
15+
{
16+
files: ['**/*.js'],
17+
languageOptions: {
18+
sourceType: 'commonjs',
19+
},
20+
},
21+
];

0 commit comments

Comments
 (0)