Skip to content

Commit

Permalink
chore: update dependency eslint to v9
Browse files Browse the repository at this point in the history
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 1db1fd7 commit a1ecaac
Show file tree
Hide file tree
Showing 7 changed files with 308 additions and 230 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
Empty file removed .eslintignore
Empty file.
10 changes: 0 additions & 10 deletions .eslintrc

This file was deleted.

7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ checkstyle.xml
loopback-connector-*.tgz
.nyc_output
coverage
.vscode
.vscode

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

module.exports = [
...compat.extends('loopback'),
{
languageOptions: {
sourceType: 'commonjs',
},
rules: {
'max-len': ['error', 90, 4, {
ignoreComments: true,
ignoreUrls: true,
ignorePattern: '^\\s*var\\s.+=\\s*(require\\s*\\()|(/)',
}],
},
},
];
Loading

0 comments on commit a1ecaac

Please sign in to comment.