Skip to content

Commit

Permalink
Bump eslint from 8.57.0 to 9.8.0 (#359)
Browse files Browse the repository at this point in the history
* Bump eslint from 8.57.0 to 9.8.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.8.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.0...v9.8.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Migrate ESlint to flat config

* Fix ESlint inconsistencies

* Remove ambiguous flattening code

* Remove unused module

* fix: Resolve conflicts

* Resolve conflicts

* Fix tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yavor Ivanov <yavor.ivanov@sap.com>
  • Loading branch information
dependabot[bot] and d3xter666 authored Aug 2, 2024
1 parent e31fcbd commit 338b601
Show file tree
Hide file tree
Showing 7 changed files with 423 additions and 267 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

56 changes: 0 additions & 56 deletions .eslintrc.js

This file was deleted.

87 changes: 87 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import jsdoc from "eslint-plugin-jsdoc";
import globals from "globals";
import js from "@eslint/js";
import google from "eslint-config-google";


export default [
js.configs.recommended,
google,
{
ignores: ["lib/thirdparty/"],
},
{
plugins: {
jsdoc,
},

languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},

ecmaVersion: 8,
sourceType: "commonjs",
},

settings: {
jsdoc: {
tagNamePreference: {
return: "returns",
},
},
},

rules: {
"indent": ["error", "tab"],
"linebreak-style": ["error", "unix"],

"quotes": [
"error",
"double",
{
allowTemplateLiterals: true,
},
],

"semi": ["error", "always"],
"no-negated-condition": "off",
"require-jsdoc": "off",
"no-mixed-requires": "off",

"max-len": [
"warn", // TODO: set to "error" and fix all findings
{
code: 120,
ignoreUrls: true,
ignoreRegExpLiterals: true,
},
],

"no-implicit-coercion": [
2,
{
allow: ["!!"],
},
],

"comma-dangle": "off",
"no-tabs": "off",
// This rule must be disabled as of ESLint 9. It's removed and causes issues when present.
// https://eslint.org/docs/latest/rules/valid-jsdoc
"valid-jsdoc": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-returns-description": 0,
"jsdoc/require-returns": 0,
},
},
{
files: ["**/*.mjs"],

languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
},
];
1 change: 1 addition & 0 deletions lib/plugin/variable-collector.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ VariableCollector.prototype = {
filename: node.currentFileInfo.filename,
rootFilename: node.currentFileInfo.rootFilename
};
// eslint-disable-next-line no-unused-vars
} catch (err) {
// Errors might occur within mixins.
// But as we only collect global variables, this doesn't matter...
Expand Down
Loading

0 comments on commit 338b601

Please sign in to comment.