-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added eslint9 config, removed eslint8 config
- Loading branch information
Klaus Weber
committed
Dec 16, 2024
1 parent
41278f9
commit ee40c3b
Showing
10 changed files
with
8,615 additions
and
5,382 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.