Skip to content

Commit c64f06a

Browse files
authored
Merge pull request #163 from SentiQ/105-migration-to-eslint-9-and-iobrokereslint-config
Migration from ESLint 8.x.x to 9.x.x
2 parents efcf2de + e83475d commit c64f06a

File tree

12 files changed

+4641
-1132
lines changed

12 files changed

+4641
-1132
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

build/main.js

Lines changed: 44 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/main.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.mjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// ioBroker eslint template configuration file for js and ts files
2+
// Please note that esm or react based modules need additional modules loaded.
3+
import config from "@iobroker/eslint-config";
4+
5+
export default [
6+
...config,
7+
{
8+
// specify files to exclude from linting here
9+
ignores: [
10+
".dev-server/",
11+
".vscode/",
12+
"*.test.js",
13+
"test/**/*.js",
14+
"*.config.mjs",
15+
"build",
16+
"dist",
17+
"admin/build",
18+
"admin/words.js",
19+
"admin/admin.d.ts",
20+
"admin/blockly.js",
21+
"**/adapter-config.d.ts",
22+
],
23+
},
24+
{
25+
// you may disable some 'jsdoc' warnings - but using jsdoc is highly recommended
26+
// as this improves maintainability. jsdoc warnings will not block buiuld process.
27+
rules: {
28+
// 'jsdoc/require-jsdoc': 'off',
29+
// 'jsdoc/require-param': 'off',
30+
// 'jsdoc/require-param-description': 'off',
31+
// 'jsdoc/require-returns-description': 'off',
32+
// 'jsdoc/require-returns-check': 'off',
33+
},
34+
},
35+
];

0 commit comments

Comments
 (0)