Skip to content

Commit

Permalink
Migrate to eslint flat configuration file
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <[email protected]>
  • Loading branch information
jsetton committed May 5, 2024
1 parent d021a9f commit 301468d
Show file tree
Hide file tree
Showing 10 changed files with 835 additions and 856 deletions.
14 changes: 0 additions & 14 deletions lambda/.eslintrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions lambda/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.npmignore
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 301468d

Please sign in to comment.