Skip to content

Commit

Permalink
zigbee-herdsman 0.56.2 / eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Aug 21, 2024
1 parent ca06a69 commit 6261cee
Show file tree
Hide file tree
Showing 26 changed files with 1,310 additions and 2,970 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

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

This file was deleted.

22 changes: 20 additions & 2 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
import oclifPrettierConfig from "@oclif/prettier-config";
import oclifPrettierConfig from '@oclif/prettier-config';
import sortImports from '@ianvs/prettier-plugin-sort-imports';

export default {
...oclifPrettierConfig,
plugins: [sortImports],
singleQuote: true,
printWidth: 150,
bracketSpacing: true,
endOfLine: "lf",
tabWidth: 4
tabWidth: 4,
importOrder: [
"",
"<TYPES>^(node:)",
"",
"<TYPES>",
"",
"<TYPES>^[.]",
"",
"<BUILTIN_MODULES>",
"",
"<THIRD_PARTY_MODULES>",
"",
"^zigbee",
"",
"^[.]",
],
};
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $ npm install -g ember-zli
$ ember-zli COMMAND
running command...
$ ember-zli (--version)
ember-zli/2.2.0 win32-x64 node-v20.15.0
ember-zli/2.3.0 win32-x64 node-v20.15.0
$ ember-zli --help [COMMAND]
USAGE
$ ember-zli COMMAND
Expand Down Expand Up @@ -111,7 +111,7 @@ EXAMPLES
$ ember-zli bootloader
```

_See code: [src/commands/bootloader/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.2.0/src/commands/bootloader/index.ts)_
_See code: [src/commands/bootloader/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.3.0/src/commands/bootloader/index.ts)_

## `ember-zli help [COMMAND]`

Expand All @@ -131,7 +131,7 @@ DESCRIPTION
Display help for ember-zli.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.7/src/commands/help.ts)_
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.8/src/commands/help.ts)_

## `ember-zli router`

Expand All @@ -148,7 +148,7 @@ EXAMPLES
$ ember-zli router
```

_See code: [src/commands/router/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.2.0/src/commands/router/index.ts)_
_See code: [src/commands/router/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.3.0/src/commands/router/index.ts)_

## `ember-zli sniff`

Expand All @@ -165,7 +165,7 @@ EXAMPLES
$ ember-zli sniff
```

_See code: [src/commands/sniff/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.2.0/src/commands/sniff/index.ts)_
_See code: [src/commands/sniff/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.3.0/src/commands/sniff/index.ts)_

## `ember-zli stack`

Expand All @@ -182,7 +182,7 @@ EXAMPLES
$ ember-zli stack
```

_See code: [src/commands/stack/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.2.0/src/commands/stack/index.ts)_
_See code: [src/commands/stack/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.3.0/src/commands/stack/index.ts)_

## `ember-zli utils`

Expand All @@ -199,7 +199,7 @@ EXAMPLES
$ ember-zli utils
```

_See code: [src/commands/utils/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.2.0/src/commands/utils/index.ts)_
_See code: [src/commands/utils/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.3.0/src/commands/utils/index.ts)_

## `ember-zli version`

Expand All @@ -219,5 +219,5 @@ FLAG DESCRIPTIONS
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
```

_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.9/src/commands/version.ts)_
_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.10/src/commands/version.ts)_
<!-- commandsstop -->
1 change: 0 additions & 1 deletion bin/dev.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning

// eslint-disable-next-line n/shebang
import {execute} from '@oclif/core'

await execute({development: true, dir: import.meta.url})
25 changes: 25 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettier from 'eslint-config-prettier';

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
prettier,
{
files: ["**/*.ts", "**/*.tsx"],
ignores: ["./eslint.config.mjs", "dist", "tmp"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "script",
parserOptions: {
project: true,
},
},
rules: {
complexity: ["warn", 25],
"max-params": ["error", 10],
"@typescript-eslint/no-floating-promises": "error",
},
}
);
Loading

0 comments on commit 6261cee

Please sign in to comment.