@pocketprep/types 1.14.11 → 1.14.14
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/.github/workflows/npm-publish.yml +1 -1
- package/CMS/Cloud.d.ts +0 -1
- package/Study/Cloud.d.ts +5 -1
- package/eslint.config.mjs +41 -0
- package/package.json +8 -6
- package/.eslintrc.js +0 -34
- package/type-tests.ts +0 -0
package/CMS/Cloud.d.ts
CHANGED
package/Study/Cloud.d.ts
CHANGED
|
@@ -676,4 +676,8 @@ export type fetchQuestionsByExamV2 = (params: {
|
|
|
676
676
|
export type fetchQuestionsByExamV3 = (params: {
|
|
677
677
|
compositeKey: string
|
|
678
678
|
includeMatrixQuestions?: boolean
|
|
679
|
-
}) => QuestionJSON[]
|
|
679
|
+
}) => QuestionJSON[]
|
|
680
|
+
|
|
681
|
+
export type fetchExamNamesByQuestionSerials = (params: { serials: string[] }) => {
|
|
682
|
+
[serial: string]: string[]
|
|
683
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import typescriptEslint from '@typescript-eslint/eslint-plugin'
|
|
2
|
+
import tsParser from '@typescript-eslint/parser'
|
|
3
|
+
import eslint from '@eslint/js'
|
|
4
|
+
import tslint from 'typescript-eslint'
|
|
5
|
+
import stylistic from '@stylistic/eslint-plugin'
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
eslint.configs.recommended,
|
|
9
|
+
...tslint.configs.recommended,
|
|
10
|
+
{
|
|
11
|
+
plugins: {
|
|
12
|
+
'@stylistic': stylistic,
|
|
13
|
+
'@typescript-eslint': typescriptEslint,
|
|
14
|
+
},
|
|
15
|
+
languageOptions: {
|
|
16
|
+
globals: {
|
|
17
|
+
Parse: 'readonly'
|
|
18
|
+
},
|
|
19
|
+
parser: tsParser,
|
|
20
|
+
},
|
|
21
|
+
rules: {
|
|
22
|
+
'quotes': ['error', 'single'],
|
|
23
|
+
'comma-dangle': ['error', 'always-multiline'],
|
|
24
|
+
'semi': ['error', 'never'],
|
|
25
|
+
'max-len': ['error', { code: 120 }],
|
|
26
|
+
'object-curly-spacing': ['error', 'always'],
|
|
27
|
+
'array-bracket-spacing': ['error', 'always', { objectsInArrays: false, arraysInArrays: false }],
|
|
28
|
+
'space-in-parens': ['error', 'never'],
|
|
29
|
+
'space-before-function-paren': ['error', 'always'],
|
|
30
|
+
'space-infix-ops': ['error', { int32Hint: true }],
|
|
31
|
+
'eqeqeq': 'error',
|
|
32
|
+
'prefer-const': 'error',
|
|
33
|
+
'@stylistic/indent': ['error', 4],
|
|
34
|
+
'@typescript-eslint/no-angle-bracket-type-assertion': 'off',
|
|
35
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
36
|
+
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
37
|
+
'@typescript-eslint/no-var-requires': 'off',
|
|
38
|
+
'@typescript-eslint/interface-name-prefix': 'off'
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pocketprep/types",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.14",
|
|
4
4
|
"description": "Pocket Prep type declarations",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,12 +23,14 @@
|
|
|
23
23
|
"homepage": "https://github.com/Pocket-Prep/types#readme",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@types/parse": "3.0.9",
|
|
26
|
-
"stripe": "
|
|
26
|
+
"stripe": "16.12.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@
|
|
30
|
-
"@typescript-eslint/
|
|
31
|
-
"eslint": "8.
|
|
32
|
-
"
|
|
29
|
+
"@stylistic/eslint-plugin": "2.8.0",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "8.6.0",
|
|
31
|
+
"@typescript-eslint/parser": "8.6.0",
|
|
32
|
+
"eslint": "9.11.0",
|
|
33
|
+
"typescript": "5.6.2",
|
|
34
|
+
"typescript-eslint": "8.6.0"
|
|
33
35
|
}
|
|
34
36
|
}
|
package/.eslintrc.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
globals: {
|
|
4
|
-
Parse: 'readonly'
|
|
5
|
-
},
|
|
6
|
-
extends: [
|
|
7
|
-
'eslint:recommended',
|
|
8
|
-
'plugin:@typescript-eslint/recommended',
|
|
9
|
-
],
|
|
10
|
-
parser: '@typescript-eslint/parser',
|
|
11
|
-
plugins: ['@typescript-eslint'],
|
|
12
|
-
rules: {
|
|
13
|
-
'quotes': [ 'error', 'single' ],
|
|
14
|
-
'comma-dangle': [ 'error', 'always-multiline' ],
|
|
15
|
-
'semi': [ 'error', 'never' ],
|
|
16
|
-
'max-len': [ 'error', { 'code': 120 }],
|
|
17
|
-
'object-curly-spacing': [ 'error', 'always' ],
|
|
18
|
-
'array-bracket-spacing': [ 'error', 'always', { 'objectsInArrays': false, 'arraysInArrays': false }],
|
|
19
|
-
'space-in-parens': [ 'error', 'never' ],
|
|
20
|
-
'space-before-function-paren': [ 'error', 'always' ],
|
|
21
|
-
'eqeqeq': 'error',
|
|
22
|
-
'prefer-const': 'error',
|
|
23
|
-
"indent": "off", // There is a @typescript-eslint/indent instead
|
|
24
|
-
"@typescript-eslint/indent": ["error", 4],
|
|
25
|
-
'@typescript-eslint/member-delimiter-style': [ 'error', { 'multiline': { delimiter: 'none' } }],
|
|
26
|
-
'@typescript-eslint/interface-name-prefix': [ 'error', 'always' ],
|
|
27
|
-
'@typescript-eslint/no-angle-bracket-type-assertion': 'off',
|
|
28
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
29
|
-
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
30
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
31
|
-
'@typescript-eslint/no-unused-vars': 'off',
|
|
32
|
-
'@typescript-eslint/interface-name-prefix': 'off'
|
|
33
|
-
}
|
|
34
|
-
}
|
package/type-tests.ts
DELETED
|
File without changes
|