Skip to content

Commit

Permalink
migrate to @iobroker/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 committed Nov 18, 2024
1 parent 5ee60f4 commit ad6e206
Show file tree
Hide file tree
Showing 9 changed files with 5,507 additions and 701 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

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

This file was deleted.

2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ admin/i18n
iob_npm.done
package-lock.json

eslint.config.mjs
prettier.config.mjs

# ioBroker dev-server
.dev-server/
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

9 changes: 0 additions & 9 deletions .prettierrc.js

This file was deleted.

33 changes: 33 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// 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',

// these files need to be adapted in future
'admin/blockly.js',
]
},

{
// 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 ad6e206

Please sign in to comment.