Skip to content

Commit

Permalink
(simatec) eslint-config added
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec committed Nov 27, 2024
1 parent deb636b commit d82728b
Show file tree
Hide file tree
Showing 6 changed files with 3,440 additions and 385 deletions.
36 changes: 0 additions & 36 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ When the adapter crashes or an other Code error happens, this error message that
* (simatec) Dependencies updated
* (simatec) small Design fix
* (simatec) Issue Action added
* (simatec) eslint-config added

### 0.9.12 (2024-09-26)
* (simatec) Fix for Admin 7.1.5
Expand Down
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 d82728b

Please sign in to comment.