Skip to content

Commit

Permalink
added eslint9 config, removed eslint8 config
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Weber committed Dec 16, 2024
1 parent 41278f9 commit ee40c3b
Show file tree
Hide file tree
Showing 10 changed files with 8,615 additions and 5,382 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

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

This file was deleted.

2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"printWidth": 2000,
"semi": true,
"tabWidth": 4,
"useTabs": false,
"trailingComma": "all",
"singleQuote": false,
"singleAttributePerLine": true,
"endOfLine": "lf",
"bracketSpacing": true,
"arrowParens": "avoid",
"quoteProps": "consistent"
}
9 changes: 0 additions & 9 deletions .prettierrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ You can find the manual of BL-NET here: https://www.ta.co.at/fileadmin/Downloads
<!--
Placeholder for next version: ### **WORK IN PROGRESS**
-->

### **WORK IN PROGRESS**

- added eslint9 config

### 1.0.29 (2024-12-13)

- added translation and documentation to data object config
Expand Down
31 changes: 31 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// 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: [".dev-server/", ".vscode/", "*.test.js", "test/**/*.js", "*.config.mjs", "build/", "admin/build/", "admin/words.js", "admin/admin.d.ts", "**/adapter-config.d.ts", "node_modules/", "doc/", "package-lock.json", "package.json", "tsconfig.json", "tsconfig.check.json", ".DS_Store", ".create-adapter.json", ".github/", ".gitignore", ".prettierrc", ".releaseconfig.json", "LICENSE", "README.md", "admin/.watch/", "admin/i18n/", "admin/jsonConfig.json", "admin/kbs.png", "admin/ta-blnet.png", "admin/tsconfig.json", "custom-eslint-formatter.js", "io-package.json", "lib/adapter-config.d.ts", "main.test.js", "test/"],
},
{
// you may disable some 'jsdoc' warnings - but using jsdoc is highly recommended
// as this improves maintainability. jsdoc warnings will not block build process.
rules: {
// 'jsdoc/require-jsdoc': 'off',
"prettier/prettier": [
"error",
{
singleQuote: false,
quoteProps: "consistent",
},
],
"quote-props": ["error", "consistent"],
"jsdoc/no-types": "off",
"jsdoc/no-defaults": "off",
"no-template-curly-in-string": "error",
"prefer-template": "off",
},
},
];
Loading

0 comments on commit ee40c3b

Please sign in to comment.