Skip to content

Commit

Permalink
Bump eslint from 8.57.0 to 9.1.1 in /lambda (#676)
Browse files Browse the repository at this point in the history
* Bump eslint from 8.57.0 to 9.1.1 in /lambda

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.1.1.
- [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.1.1)

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

Signed-off-by: dependabot[bot] <[email protected]>

* Migrate to eslint flat configuration file

Signed-off-by: jsetton <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: jsetton <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jsetton <[email protected]>
  • Loading branch information
dependabot[bot] and jsetton authored May 5, 2024
1 parent 691a07e commit 7816b82
Show file tree
Hide file tree
Showing 10 changed files with 963 additions and 953 deletions.
14 changes: 0 additions & 14 deletions lambda/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions lambda/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eslint.config.js
coverage/
test/
33 changes: 33 additions & 0 deletions lambda/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* Copyright (c) 2010-2024 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/

import js from '@eslint/js';
import pluginMocha from 'eslint-plugin-mocha';
import pluginNode from 'eslint-plugin-n';
import pluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

export default [
js.configs.recommended,
pluginMocha.configs.flat.recommended,
pluginNode.configs['flat/recommended-script'],
pluginPrettierRecommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module'
},
rules: {
'no-console': 'warn'
}
}
];
Loading

0 comments on commit 7816b82

Please sign in to comment.