Skip to content

Commit

Permalink
Migration to ESLINT 9 and @opbroker/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 committed Dec 12, 2024
1 parent 1095428 commit 3875e65
Show file tree
Hide file tree
Showing 11 changed files with 5,037 additions and 1,909 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

42 changes: 0 additions & 42 deletions .eslintrc.json

This file was deleted.

9 changes: 0 additions & 9 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@
"xl": 6,
"min": 1,
"max": 3600
},
"sentry": {
"type": "checkbox",
"label": "Allow anonymous usage statistics with Sentry",
"xs": 12,
"sm": 12,
"md": 6,
"lg": 6,
"xl": 6
}
}
}
30 changes: 30 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// ioBroker eslint template configuration file for js and ts files
// Please note that esm or react based modules need additional modules loaded.
import config from '@iobroker/eslint-config';

export default [
...config,

{
// specify files to exclude from linting here
ignores: [
'*.test.js',
'test/**/*.js',
'*.config.mjs',
'build',
'admin/build',
'admin/words.js',
'admin/admin.d.ts',
'**/adapter-config.d.ts'
]
},

{
// you may disable some 'jsdoc' warnings - but using jsdoc is highly recommended
// as this improves maintainability. jsdoc warnings will not block buiuld process.
rules: {
// 'jsdoc/require-jsdoc': 'off',
},
},

];
Loading

0 comments on commit 3875e65

Please sign in to comment.