@node-3d/addon-tools 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ import { defineConfig } from "oxfmt";
2
+ const config = {
3
+ useTabs: true,
4
+ tabWidth: 4,
5
+ singleQuote: true,
6
+ jsxSingleQuote: false,
7
+ arrowParens: 'always',
8
+ bracketSpacing: true,
9
+ endOfLine: 'lf',
10
+ insertFinalNewline: true,
11
+ objectWrap: 'preserve',
12
+ semi: true,
13
+ printWidth: 100,
14
+ trailingComma: 'all',
15
+ ignorePatterns: [
16
+ '**/node_modules/**',
17
+ '**/dist/**',
18
+ '**/bin/**',
19
+ '**/bin-*',
20
+ '**/src/build/**',
21
+ '**/src/build-*',
22
+ '**/*.d.ts',
23
+ '**/examples/qt-calqlatr/calqlatr/content/calculator.js',
24
+ '**/ThemedUi/default-theme.js',
25
+ '**/examples/qml/themes/themes.js'
26
+ ]
27
+ };
28
+ const oxfmt = defineConfig(config);
29
+ export default oxfmt;
@@ -0,0 +1,141 @@
1
+ declare const _default: {
2
+ plugins: ("eslint" | "import" | "jsdoc" | "node" | "oxc" | "promise" | "typescript" | "unicorn")[];
3
+ categories: {
4
+ correctness: "error";
5
+ suspicious: "error";
6
+ pedantic: "error";
7
+ perf: "error";
8
+ style: "error";
9
+ restriction: "error";
10
+ nursery: "error";
11
+ };
12
+ ignorePatterns: string[];
13
+ overrides: ({
14
+ files: string[];
15
+ rules: {
16
+ 'eslint/no-console': "off";
17
+ 'eslint/max-lines-per-function': "off";
18
+ 'eslint/max-lines': "off";
19
+ 'eslint/no-magic-numbers': "off";
20
+ 'eslint/max-statements': "off";
21
+ 'node/no-sync': "off";
22
+ 'unicorn/no-useless-undefined': "off";
23
+ 'unicorn/no-process-exit'?: never;
24
+ };
25
+ } | {
26
+ files: string[];
27
+ rules: {
28
+ 'eslint/max-lines-per-function'?: never;
29
+ 'eslint/max-statements'?: never;
30
+ 'unicorn/no-useless-undefined'?: never;
31
+ 'eslint/max-lines': "off";
32
+ 'eslint/no-console'?: never;
33
+ 'eslint/no-magic-numbers'?: never;
34
+ 'node/no-sync'?: never;
35
+ 'unicorn/no-process-exit'?: never;
36
+ };
37
+ } | {
38
+ files: string[];
39
+ rules: {
40
+ 'eslint/max-lines-per-function'?: never;
41
+ 'eslint/max-statements'?: never;
42
+ 'unicorn/no-useless-undefined'?: never;
43
+ 'eslint/max-lines'?: never;
44
+ 'eslint/no-console': "off";
45
+ 'eslint/no-magic-numbers': "off";
46
+ 'node/no-sync': "off";
47
+ 'unicorn/no-process-exit': "off";
48
+ };
49
+ })[];
50
+ rules: {
51
+ 'eslint/capitalized-comments': "off";
52
+ 'eslint/class-methods-use-this': "off";
53
+ 'eslint/id-length': "off";
54
+ 'eslint/no-bitwise': "off";
55
+ 'eslint/no-continue': "off";
56
+ 'eslint/no-duplicate-imports': "off";
57
+ 'eslint/no-implicit-coercion': "off";
58
+ 'eslint/no-inline-comments': "off";
59
+ 'eslint/no-plusplus': "off";
60
+ 'eslint/no-shadow': "off";
61
+ 'eslint/no-ternary': "off";
62
+ 'eslint/no-undef': "off";
63
+ 'eslint/no-undefined': "off";
64
+ 'eslint/no-useless-assignment': "off";
65
+ 'eslint/no-warning-comments': "off";
66
+ 'eslint/prefer-destructuring': "off";
67
+ 'eslint/prefer-named-capture-group': "off";
68
+ 'eslint/sort-imports': "off";
69
+ 'eslint/sort-keys': "off";
70
+ 'eslint/sort-vars': "off";
71
+ 'import/exports-last': "off";
72
+ 'import/group-exports': "off";
73
+ 'import/no-anonymous-default-export': "off";
74
+ 'import/no-default-export': "off";
75
+ 'import/no-dynamic-require': "off";
76
+ 'import/no-named-as-default-member': "off";
77
+ 'import/no-named-export': "off";
78
+ 'import/no-namespace': "off";
79
+ 'import/no-nodejs-modules': "off";
80
+ 'import/no-relative-parent-imports': "off";
81
+ 'import/no-unassigned-import': "off";
82
+ 'import/prefer-default-export': "off";
83
+ 'import/unambiguous': "off";
84
+ 'jsdoc/no-defaults': "off";
85
+ 'jsdoc/require-param-description': "off";
86
+ 'jsdoc/require-param-type': "off";
87
+ 'jsdoc/require-param': "off";
88
+ 'jsdoc/require-property': "off";
89
+ 'jsdoc/require-returns-description': "off";
90
+ 'jsdoc/require-returns': "off";
91
+ 'node/global-require': "off";
92
+ 'oxc/no-async-await': "off";
93
+ 'oxc/no-optional-chaining': "off";
94
+ 'oxc/no-rest-spread-properties': "off";
95
+ 'promise/avoid-new': "off";
96
+ 'promise/prefer-await-to-callbacks': "off";
97
+ 'typescript/class-literal-property-style': "off";
98
+ 'typescript/explicit-function-return-type': "off";
99
+ 'typescript/no-inferrable-types': "off";
100
+ 'unicorn/import-style': "off";
101
+ 'unicorn/no-null': "off";
102
+ 'unicorn/no-this-assignment': "off";
103
+ 'unicorn/no-zero-fractions': "off";
104
+ 'unicorn/number-literal-case': "off";
105
+ 'unicorn/numeric-separators-style': "off";
106
+ 'unicorn/prefer-dom-node-append': "off";
107
+ 'unicorn/prefer-event-target': "off";
108
+ 'unicorn/prefer-global-this': "off";
109
+ 'unicorn/prefer-number-coercion': "off";
110
+ 'unicorn/prefer-query-selector': "off";
111
+ 'eslint/arrow-body-style': ["error", string];
112
+ 'eslint/max-lines-per-function': ["error", {
113
+ max: number;
114
+ }];
115
+ 'eslint/max-lines': ["error", {
116
+ max: number;
117
+ }];
118
+ 'eslint/max-params': ["error", {
119
+ max: number;
120
+ }];
121
+ 'eslint/max-statements': ["error", {
122
+ max: number;
123
+ }];
124
+ 'eslint/no-magic-numbers': ["error", {
125
+ ignore: number[];
126
+ ignoreDefaultValues: boolean;
127
+ ignoreClassFieldInitialValues: boolean;
128
+ ignoreNumericLiteralTypes: boolean;
129
+ ignoreTypeIndexes: boolean;
130
+ }];
131
+ 'eslint/no-underscore-dangle': ["error", {
132
+ allowAfterThis: boolean;
133
+ }];
134
+ 'promise/param-names': ["error", {
135
+ resolvePattern: string;
136
+ rejectPattern: string;
137
+ }];
138
+ 'typescript/consistent-type-definitions': ["error", "type"];
139
+ };
140
+ };
141
+ export default _default;
@@ -0,0 +1,215 @@
1
+ import { defineConfig } from "oxlint";
2
+ const oxlint = defineConfig({
3
+ plugins: [
4
+ 'node',
5
+ 'eslint',
6
+ "typescript",
7
+ 'oxc',
8
+ 'import',
9
+ 'jsdoc',
10
+ 'promise',
11
+ 'unicorn'
12
+ ],
13
+ categories: {
14
+ correctness: 'error',
15
+ suspicious: 'error',
16
+ pedantic: 'error',
17
+ perf: 'error',
18
+ style: 'error',
19
+ restriction: 'error',
20
+ nursery: 'error'
21
+ },
22
+ ignorePatterns: [
23
+ '**/dist/**',
24
+ '**/*.d.ts'
25
+ ],
26
+ overrides: [
27
+ {
28
+ files: [
29
+ '**/*.test.*',
30
+ '**/test/**/*',
31
+ '**/tests/**/*',
32
+ '**/test-addon/**/*'
33
+ ],
34
+ rules: {
35
+ 'eslint/no-console': 'off',
36
+ 'eslint/max-lines-per-function': 'off',
37
+ 'eslint/max-lines': 'off',
38
+ 'eslint/no-magic-numbers': 'off',
39
+ 'eslint/max-statements': 'off',
40
+ 'node/no-sync': 'off',
41
+ 'unicorn/no-useless-undefined': 'off'
42
+ }
43
+ },
44
+ {
45
+ files: [
46
+ '**/ts/native.ts'
47
+ ],
48
+ rules: {
49
+ 'eslint/max-lines': 'off'
50
+ }
51
+ },
52
+ {
53
+ files: [
54
+ '**/src/build-*',
55
+ '**/examples/**/*'
56
+ ],
57
+ rules: {
58
+ 'eslint/no-console': 'off',
59
+ 'eslint/no-magic-numbers': 'off',
60
+ 'node/no-sync': 'off',
61
+ 'unicorn/no-process-exit': 'off'
62
+ }
63
+ }
64
+ ],
65
+ rules: {
66
+ 'eslint/capitalized-comments': 'off',
67
+ 'eslint/class-methods-use-this': 'off',
68
+ 'eslint/id-length': 'off',
69
+ 'eslint/no-bitwise': 'off',
70
+ 'eslint/no-continue': 'off',
71
+ 'eslint/no-duplicate-imports': 'off',
72
+ 'eslint/no-implicit-coercion': 'off',
73
+ 'eslint/no-inline-comments': 'off',
74
+ 'eslint/no-plusplus': 'off',
75
+ 'eslint/no-shadow': 'off',
76
+ 'eslint/no-ternary': 'off',
77
+ 'eslint/no-undef': 'off',
78
+ 'eslint/no-undefined': 'off',
79
+ 'eslint/no-useless-assignment': 'off',
80
+ 'eslint/no-warning-comments': 'off',
81
+ 'eslint/prefer-destructuring': 'off',
82
+ 'eslint/prefer-named-capture-group': 'off',
83
+ 'eslint/sort-imports': 'off',
84
+ 'eslint/sort-keys': 'off',
85
+ 'eslint/sort-vars': 'off',
86
+ 'import/exports-last': 'off',
87
+ 'import/group-exports': 'off',
88
+ 'import/no-anonymous-default-export': 'off',
89
+ 'import/no-default-export': 'off',
90
+ 'import/no-dynamic-require': 'off',
91
+ 'import/no-named-as-default-member': 'off',
92
+ 'import/no-named-export': 'off',
93
+ 'import/no-namespace': 'off',
94
+ 'import/no-nodejs-modules': 'off',
95
+ 'import/no-relative-parent-imports': 'off',
96
+ 'import/no-unassigned-import': 'off',
97
+ 'import/prefer-default-export': 'off',
98
+ 'import/unambiguous': 'off',
99
+ 'jsdoc/no-defaults': 'off',
100
+ "jsdoc/require-param-description": 'off',
101
+ 'jsdoc/require-param-type': 'off',
102
+ 'jsdoc/require-param': 'off',
103
+ 'jsdoc/require-property': 'off',
104
+ "jsdoc/require-returns-description": 'off',
105
+ 'jsdoc/require-returns': 'off',
106
+ 'node/global-require': 'off',
107
+ 'oxc/no-async-await': 'off',
108
+ 'oxc/no-optional-chaining': 'off',
109
+ 'oxc/no-rest-spread-properties': 'off',
110
+ 'promise/avoid-new': 'off',
111
+ 'promise/prefer-await-to-callbacks': 'off',
112
+ "typescript/class-literal-property-style": 'off',
113
+ "typescript/explicit-function-return-type": 'off',
114
+ "typescript/no-inferrable-types": 'off',
115
+ 'unicorn/import-style': 'off',
116
+ 'unicorn/no-null': 'off',
117
+ 'unicorn/no-this-assignment': 'off',
118
+ 'unicorn/no-zero-fractions': 'off',
119
+ 'unicorn/number-literal-case': 'off',
120
+ 'unicorn/numeric-separators-style': 'off',
121
+ 'unicorn/prefer-dom-node-append': 'off',
122
+ 'unicorn/prefer-event-target': 'off',
123
+ 'unicorn/prefer-global-this': 'off',
124
+ 'unicorn/prefer-number-coercion': 'off',
125
+ 'unicorn/prefer-query-selector': 'off',
126
+ 'eslint/arrow-body-style': [
127
+ 'error',
128
+ 'as-needed'
129
+ ],
130
+ 'eslint/max-lines-per-function': [
131
+ 'error',
132
+ {
133
+ max: 100
134
+ }
135
+ ],
136
+ 'eslint/max-lines': [
137
+ 'error',
138
+ {
139
+ max: 600
140
+ }
141
+ ],
142
+ 'eslint/max-params': [
143
+ 'error',
144
+ {
145
+ max: 6
146
+ }
147
+ ],
148
+ 'eslint/max-statements': [
149
+ 'error',
150
+ {
151
+ max: 50
152
+ }
153
+ ],
154
+ 'eslint/no-magic-numbers': [
155
+ 'error',
156
+ {
157
+ ignore: [
158
+ 0xffffff,
159
+ -10,
160
+ -1,
161
+ -0.5,
162
+ 0,
163
+ 0.05,
164
+ 0.1,
165
+ 0.001,
166
+ 0.5,
167
+ 1,
168
+ 2,
169
+ 3,
170
+ 4,
171
+ 5,
172
+ 8,
173
+ 10,
174
+ 15,
175
+ 16,
176
+ 24,
177
+ 32,
178
+ 60,
179
+ 64,
180
+ 100,
181
+ 128,
182
+ 255,
183
+ 256,
184
+ 512,
185
+ 720,
186
+ 1000,
187
+ 1024,
188
+ 1280
189
+ ],
190
+ ignoreDefaultValues: true,
191
+ ignoreClassFieldInitialValues: true,
192
+ ignoreNumericLiteralTypes: true,
193
+ ignoreTypeIndexes: true
194
+ }
195
+ ],
196
+ 'eslint/no-underscore-dangle': [
197
+ 'error',
198
+ {
199
+ allowAfterThis: true
200
+ }
201
+ ],
202
+ 'promise/param-names': [
203
+ 'error',
204
+ {
205
+ resolvePattern: '^res$',
206
+ rejectPattern: '^rej$'
207
+ }
208
+ ],
209
+ "typescript/consistent-type-definitions": [
210
+ 'error',
211
+ 'type'
212
+ ]
213
+ }
214
+ });
215
+ export default oxlint;