Skip to content

Commit b5a4a24

Browse files
chore: update dependency eslint to v9
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 <25147899+achrinza@users.noreply.github.com>
1 parent 1db1fd7 commit b5a4a24

7 files changed

Lines changed: 308 additions & 230 deletions

File tree

.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

.eslintignore

Whitespace-only changes.

.eslintrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ checkstyle.xml
1515
loopback-connector-*.tgz
1616
.nyc_output
1717
coverage
18-
.vscode
18+
.vscode
19+
20+
# Code editors
21+
\#*#
22+
*~
23+
.#*

eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// SPDX-FileCopyrightText: Copyright LoopBack contributors 2024.
2+
// SPDX-License-Identifier: MIT
3+
'use strict';
4+
const FlatCompat = require('@eslint/eslintrc').FlatCompat;
5+
const compat = new FlatCompat({
6+
baseDirectory: __dirname,
7+
});
8+
9+
module.exports = [
10+
...compat.extends('loopback'),
11+
{
12+
languageOptions: {
13+
sourceType: 'commonjs',
14+
},
15+
rules: {
16+
'max-len': ['error', 90, 4, {
17+
ignoreComments: true,
18+
ignoreUrls: true,
19+
ignorePattern: '^\\s*var\\s.+=\\s*(require\\s*\\()|(/)',
20+
}],
21+
},
22+
},
23+
];

0 commit comments

Comments
 (0)