arx-convert 10.4.0 → 10.4.2
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.
- package/dist/amb/AmbHeader.js +3 -3
- package/dist/amb/AmbHeader.js.map +1 -1
- package/dist/amb/constants.d.ts +2 -2
- package/dist/amb/constants.js +2 -2
- package/dist/amb/constants.js.map +1 -1
- package/dist/bin/convert.js +3 -3
- package/dist/bin/convert.js.map +1 -1
- package/dist/bin/helpers.d.ts +2 -2
- package/dist/bin/helpers.js +6 -5
- package/dist/bin/helpers.js.map +1 -1
- package/dist/common/BinaryIO.js +1 -1
- package/dist/common/BinaryIO.js.map +1 -1
- package/dist/common/Color.d.ts +25 -5
- package/dist/common/Color.js +46 -22
- package/dist/common/Color.js.map +1 -1
- package/dist/common/constants.d.ts +9 -0
- package/dist/common/constants.js +10 -3
- package/dist/common/constants.js.map +1 -1
- package/dist/common/helpers.d.ts +1 -1
- package/dist/common/helpers.js +1 -1
- package/dist/common/helpers.js.map +1 -1
- package/dist/dlf/DlfHeader.js +1 -1
- package/dist/dlf/DlfHeader.js.map +1 -1
- package/dist/dlf/ZoneAndPathHeader.d.ts +2 -0
- package/dist/dlf/ZoneAndPathHeader.js +34 -28
- package/dist/dlf/ZoneAndPathHeader.js.map +1 -1
- package/dist/dlf/constants.d.ts +6 -0
- package/dist/dlf/constants.js +7 -0
- package/dist/dlf/constants.js.map +1 -0
- package/dist/ftl/FtlHeader.js +3 -3
- package/dist/ftl/FtlHeader.js.map +1 -1
- package/dist/ftl/constants.d.ts +4 -1
- package/dist/ftl/constants.js +4 -1
- package/dist/ftl/constants.js.map +1 -1
- package/dist/fts/FtsHeader.js +3 -3
- package/dist/fts/FtsHeader.js.map +1 -1
- package/dist/fts/SceneHeader.js +5 -5
- package/dist/fts/SceneHeader.js.map +1 -1
- package/dist/fts/constants.d.ts +74 -1
- package/dist/fts/constants.js +74 -52
- package/dist/fts/constants.js.map +1 -1
- package/dist/llf/Light.js +1 -1
- package/dist/llf/Light.js.map +1 -1
- package/dist/llf/LlfHeader.js +1 -1
- package/dist/llf/LlfHeader.js.map +1 -1
- package/package.json +2 -2
- package/xo.config.ts +64 -0
package/xo.config.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import unusedImports from 'eslint-plugin-unused-imports'
|
|
2
|
+
import type { FlatXoConfig } from 'xo'
|
|
3
|
+
|
|
4
|
+
const xoConfig: FlatXoConfig = {
|
|
5
|
+
space: true,
|
|
6
|
+
semicolon: false,
|
|
7
|
+
prettier: true,
|
|
8
|
+
plugins: {
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- god knows why this keeps coming back...
|
|
10
|
+
'unused-imports': unusedImports,
|
|
11
|
+
},
|
|
12
|
+
files: ['xo.config.ts', 'src/**/*.ts'],
|
|
13
|
+
rules: {
|
|
14
|
+
'capitalized-comments': 'off',
|
|
15
|
+
'no-bitwise': 'off',
|
|
16
|
+
'no-warning-comments': 'off',
|
|
17
|
+
'@typescript-eslint/no-extraneous-class': 'off',
|
|
18
|
+
'@typescript-eslint/ban-types': 'off',
|
|
19
|
+
'unicorn/filename-case': 'off',
|
|
20
|
+
'unicorn/no-array-callback-reference': 'off',
|
|
21
|
+
'unicorn/no-array-for-each': 'off',
|
|
22
|
+
'unicorn/no-static-only-class': 'off',
|
|
23
|
+
'unicorn/prefer-math-trunc': 'off',
|
|
24
|
+
'unicorn/prefer-module': 'off',
|
|
25
|
+
'unicorn/prevent-abbreviations': 'off',
|
|
26
|
+
curly: ['error', 'all'],
|
|
27
|
+
'func-style': ['error', 'declaration'],
|
|
28
|
+
'no-use-before-define': ['error', { functions: true, classes: true, variables: true, allowNamedExports: false }],
|
|
29
|
+
'@typescript-eslint/naming-convention': [
|
|
30
|
+
'error',
|
|
31
|
+
{ selector: 'variable', format: ['camelCase', 'UPPER_CASE', 'PascalCase'] },
|
|
32
|
+
],
|
|
33
|
+
'@typescript-eslint/class-literal-property-style': ['error', 'fields'],
|
|
34
|
+
'@typescript-eslint/prefer-literal-enum-member': ['error', { allowBitwiseExpressions: true }],
|
|
35
|
+
'@typescript-eslint/consistent-type-imports': [
|
|
36
|
+
'error',
|
|
37
|
+
{ fixStyle: 'separate-type-imports', prefer: 'type-imports' },
|
|
38
|
+
],
|
|
39
|
+
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
40
|
+
'@typescript-eslint/array-type': ['error', { default: 'array' }],
|
|
41
|
+
'@typescript-eslint/parameter-properties': ['error', { prefer: 'class-property' }],
|
|
42
|
+
'operator-assignment': ['error', 'never'],
|
|
43
|
+
'logical-assignment-operators': ['error', 'never'],
|
|
44
|
+
'@typescript-eslint/no-inferrable-types': ['error', { ignoreParameters: true, ignoreProperties: true }],
|
|
45
|
+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
|
|
46
|
+
'unicorn/prefer-ternary': 'off',
|
|
47
|
+
'no-ternary': 'error',
|
|
48
|
+
'no-await-in-loop': 'off',
|
|
49
|
+
'@typescript-eslint/consistent-type-definitions': 'off',
|
|
50
|
+
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
|
51
|
+
'unicorn/prefer-number-properties': ['error', { checkInfinity: true, checkNaN: true }],
|
|
52
|
+
'unused-imports/no-unused-imports': 'error',
|
|
53
|
+
'guard-for-in': 'off',
|
|
54
|
+
'arrow-body-style': ['error', 'always'],
|
|
55
|
+
'@typescript-eslint/unified-signatures': 'off',
|
|
56
|
+
'unicorn/no-for-loop': 'off',
|
|
57
|
+
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
58
|
+
'object-shorthand': ['error', 'always', { avoidQuotes: true }],
|
|
59
|
+
'@typescript-eslint/no-import-type-side-effects': 'error',
|
|
60
|
+
'unicorn/prefer-string-raw': 'off',
|
|
61
|
+
},
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export default xoConfig
|