Skip to content

Commit 9116a4f

Browse files
committed
feat: added prettier, and getMediaContainerStatus
1 parent e2c757e commit 9116a4f

File tree

4 files changed

+1067
-743
lines changed

4 files changed

+1067
-743
lines changed

.eslintrc.js

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,49 @@ module.exports = {
33
env: {
44
node: true,
55
},
6-
parser: '@typescript-eslint/parser',
7-
plugins: ['@typescript-eslint'],
8-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
6+
parser: "@typescript-eslint/parser",
7+
plugins: ["@typescript-eslint"],
8+
extends: [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:prettier/recommended",
12+
],
913
// add your custom rules here
1014
rules: {
11-
semi: ['error', 'always'],
12-
'no-extra-semi': 'error',
13-
'no-extra-parens': 'off',
14-
'comma-dangle': ['error', 'always-multiline'],
15-
'space-before-function-paren': ['error', {
16-
anonymous: 'always',
17-
named: 'never',
18-
asyncArrow: 'always',
19-
}],
20-
'func-call-spacing': ['error', 'never'],
21-
'no-console': 'off',
22-
'no-unused-expression': 'off',
23-
'no-useless-constructor': 'off',
24-
'arrow-parens': 'off',
25-
'no-use-before-define': 'off',
26-
'no-return-assign': 'off',
27-
'quotes': ['error', 'single'],
28-
'member-access': 'off',
29-
'member-ordering': 'off',
30-
'object-literal-sort-keys': 'off',
31-
'no-trailing-spaces': 'error',
32-
'@typescript-eslint/no-inferrable-types': 'off',
33-
'@typescript-eslint/explicit-module-boundary-types': 'off',
34-
'@typescript-eslint/no-explicit-any': 'off',
35-
'@typescript-eslint/no-non-null-assertion': 'off',
36-
'@typescript-eslint/no-extra-parens': ['off'],
37-
'@typescript-eslint/ban-types': 'off',
38-
'@typescript-eslint/no-unused-vars': ['error', {
39-
varsIgnorePattern: '^_',
40-
}],
15+
semi: ["error", "always"],
16+
"no-extra-semi": "error",
17+
"no-extra-parens": "off",
18+
"comma-dangle": ["error", "always-multiline"],
19+
"space-before-function-paren": [
20+
"error",
21+
{
22+
anonymous: "always",
23+
named: "never",
24+
asyncArrow: "always",
25+
},
26+
],
27+
"func-call-spacing": ["error", "never"],
28+
"no-console": "off",
29+
"no-unused-expression": "off",
30+
"no-useless-constructor": "off",
31+
"arrow-parens": "off",
32+
"no-use-before-define": "off",
33+
"no-return-assign": "off",
34+
"member-access": "off",
35+
"member-ordering": "off",
36+
"object-literal-sort-keys": "off",
37+
"no-trailing-spaces": "error",
38+
"@typescript-eslint/no-inferrable-types": "off",
39+
"@typescript-eslint/explicit-module-boundary-types": "off",
40+
"@typescript-eslint/no-explicit-any": "off",
41+
"@typescript-eslint/no-non-null-assertion": "off",
42+
"@typescript-eslint/no-extra-parens": ["off"],
43+
"@typescript-eslint/ban-types": "off",
44+
"@typescript-eslint/no-unused-vars": [
45+
"error",
46+
{
47+
varsIgnorePattern: "^_",
48+
},
49+
],
4150
},
4251
};

package-lock.json

Lines changed: 218 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"build:esm": "tsc -b tsconfig.esm.json",
2222
"build-doc": "typedoc src/index.ts --out tsdocs",
2323
"lint": "eslint --ext \".ts\" --ignore-path .gitignore .",
24+
"test": "npm run mocha 'test/**/*.test.ts'",
2425
"prepublish": "npm run build"
2526
},
2627
"repository": "github:solojungle/threads-ts",
@@ -42,7 +43,10 @@
4243
"chai": "^4.3.4",
4344
"dotenv": "^16.0.3",
4445
"eslint": "^8.30.0",
46+
"eslint-config-prettier": "^9.1.0",
47+
"eslint-plugin-prettier": "^5.2.1",
4548
"mocha": "^10.0.0",
49+
"sinon": "^19.0.2",
4650
"ts-node": "^10.9.1",
4751
"typedoc": "^0.23.23",
4852
"typescript": "^4.2.4"

0 commit comments

Comments
 (0)