swaply-sdk-ts 0.0.2 → 0.0.3
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/package.json
CHANGED
package/tsconfig.json
CHANGED
package/dist/eslint.config.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
2
|
-
import prettier from 'eslint-plugin-prettier';
|
|
3
|
-
import simpleImportSort from 'eslint-plugin-simple-import-sort';
|
|
4
|
-
import unicorn from 'eslint-plugin-unicorn';
|
|
5
|
-
import unusedImports from 'eslint-plugin-unused-imports';
|
|
6
|
-
import globals from 'globals';
|
|
7
|
-
import tseslint from 'typescript-eslint';
|
|
8
|
-
export default tseslint.config({
|
|
9
|
-
ignores: ['dist', 'node_modules', 'src/tests'],
|
|
10
|
-
}, {
|
|
11
|
-
files: ['**/*.{ts,tsx}'],
|
|
12
|
-
languageOptions: {
|
|
13
|
-
ecmaVersion: 2020,
|
|
14
|
-
sourceType: 'module',
|
|
15
|
-
parser: tseslint.parser,
|
|
16
|
-
parserOptions: {
|
|
17
|
-
project: './tsconfig.json',
|
|
18
|
-
},
|
|
19
|
-
globals: globals.browser,
|
|
20
|
-
},
|
|
21
|
-
plugins: {
|
|
22
|
-
'@typescript-eslint': tsPlugin,
|
|
23
|
-
prettier,
|
|
24
|
-
unicorn,
|
|
25
|
-
'simple-import-sort': simpleImportSort,
|
|
26
|
-
'unused-imports': unusedImports,
|
|
27
|
-
},
|
|
28
|
-
rules: {
|
|
29
|
-
...tsPlugin.configs.recommended.rules,
|
|
30
|
-
...unicorn.configs.recommended.rules,
|
|
31
|
-
'prettier/prettier': ['warn', { tabWidth: 4, singleQuote: true }],
|
|
32
|
-
'import/order': 'off',
|
|
33
|
-
'sort-imports': 'off',
|
|
34
|
-
'simple-import-sort/imports': [
|
|
35
|
-
'error',
|
|
36
|
-
{
|
|
37
|
-
groups: [
|
|
38
|
-
[String.raw `^\u0000`], // side effects
|
|
39
|
-
['^node:'],
|
|
40
|
-
[String.raw `^@?(?!app|api|components|static|store|images)[\w-]`], // external
|
|
41
|
-
['^@components/', '^@app/', '^@api/', '^@store/', '^@/'], // internal
|
|
42
|
-
['^@static/', '^@images/'], // assets
|
|
43
|
-
[
|
|
44
|
-
String.raw `^\.\.(?!/?$)`,
|
|
45
|
-
String.raw `^\./(?=.*/)`,
|
|
46
|
-
String.raw `^\.(?!/?$)`,
|
|
47
|
-
String.raw `^\./?$`,
|
|
48
|
-
], // local
|
|
49
|
-
[String.raw `^.+\.s?css$`], // styles
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
'simple-import-sort/exports': 'error',
|
|
54
|
-
'unused-imports/no-unused-imports': 'error',
|
|
55
|
-
'unused-imports/no-unused-vars': [
|
|
56
|
-
'warn',
|
|
57
|
-
{
|
|
58
|
-
vars: 'all',
|
|
59
|
-
varsIgnorePattern: '^_',
|
|
60
|
-
args: 'after-used',
|
|
61
|
-
argsIgnorePattern: '^_',
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
'@typescript-eslint/naming-convention': [
|
|
65
|
-
'warn',
|
|
66
|
-
{
|
|
67
|
-
selector: 'variable',
|
|
68
|
-
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
|
|
69
|
-
leadingUnderscore: 'allow',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
selector: 'function',
|
|
73
|
-
format: ['camelCase', 'PascalCase'],
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
semi: ['warn', 'always'],
|
|
77
|
-
'no-console': 'error',
|
|
78
|
-
'padding-line-between-statements': [
|
|
79
|
-
'warn',
|
|
80
|
-
{ blankLine: 'always', prev: '*', next: 'return' },
|
|
81
|
-
],
|
|
82
|
-
'spaced-comment': ['error', 'always', { markers: ['/'] }],
|
|
83
|
-
'@typescript-eslint/no-misused-new': 'error',
|
|
84
|
-
'consistent-return': 'off',
|
|
85
|
-
'guard-for-in': 'error',
|
|
86
|
-
'no-constructor-return': 'error',
|
|
87
|
-
'no-else-return': 'error',
|
|
88
|
-
'no-eval': 'error',
|
|
89
|
-
'no-extend-native': 'error',
|
|
90
|
-
'no-extra-bind': 'error',
|
|
91
|
-
'no-floating-decimal': 'error',
|
|
92
|
-
'no-implicit-globals': 'error',
|
|
93
|
-
'no-new': 'error',
|
|
94
|
-
'no-script-url': 'error',
|
|
95
|
-
'max-depth': ['error', 3],
|
|
96
|
-
'max-nested-callbacks': ['error', 3],
|
|
97
|
-
'new-cap': 'error',
|
|
98
|
-
'no-multi-assign': 'error',
|
|
99
|
-
'no-multiple-empty-lines': 'error',
|
|
100
|
-
'no-nested-ternary': 'error',
|
|
101
|
-
'no-trailing-spaces': 'error',
|
|
102
|
-
'no-underscore-dangle': 'error',
|
|
103
|
-
'no-whitespace-before-property': 'error',
|
|
104
|
-
'object-curly-spacing': ['error', 'always'],
|
|
105
|
-
'operator-assignment': ['error', 'always'],
|
|
106
|
-
'padded-blocks': ['error', 'never'],
|
|
107
|
-
'semi-spacing': 'error',
|
|
108
|
-
'semi-style': ['error', 'last'],
|
|
109
|
-
'space-before-blocks': 'error',
|
|
110
|
-
'space-in-parens': ['error', 'never'],
|
|
111
|
-
'space-unary-ops': 'error',
|
|
112
|
-
'switch-colon-spacing': 'error',
|
|
113
|
-
'array-bracket-spacing': ['error', 'never'],
|
|
114
|
-
'block-spacing': 'error',
|
|
115
|
-
camelcase: 'off',
|
|
116
|
-
'unicorn/prefer-switch': ['error', { minimumCases: 3 }],
|
|
117
|
-
'unicorn/filename-case': 'off',
|
|
118
|
-
'unicorn/prefer-query-selector': 'off',
|
|
119
|
-
'unicorn/prevent-abbreviations': 'off',
|
|
120
|
-
'unicorn/no-null': 'off',
|
|
121
|
-
'unicorn/consistent-function-scoping': 'off',
|
|
122
|
-
'unicorn/prefer-logical-operator-over-ternary': 'off',
|
|
123
|
-
'unicorn/no-static-only-class': 'off',
|
|
124
|
-
'unicorn/prefer-ternary': 'off',
|
|
125
|
-
'unicorn/prefer-global-this': 'off',
|
|
126
|
-
'unicorn/no-negated-condition': 'off',
|
|
127
|
-
'unicorn/prefer-spread': 'off',
|
|
128
|
-
'@typescript-eslint/no-unused-expressions': 'off',
|
|
129
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
130
|
-
'unicorn/prefer-string-replace-all': 'off',
|
|
131
|
-
'@typescript-eslint/no-duplicate-enum-values': 'off',
|
|
132
|
-
'@typescript-eslint/no-unused-vars': 'off',
|
|
133
|
-
'react-hooks/exhaustive-deps': 'off',
|
|
134
|
-
},
|
|
135
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|