Skip to content

Commit

Permalink
feat: added prettier, and getMediaContainerStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
solojungle committed Oct 2, 2024
1 parent e2c757e commit 9116a4f
Show file tree
Hide file tree
Showing 4 changed files with 1,067 additions and 743 deletions.
75 changes: 42 additions & 33 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,49 @@ module.exports = {
env: {
node: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
// add your custom rules here
rules: {
semi: ['error', 'always'],
'no-extra-semi': 'error',
'no-extra-parens': 'off',
'comma-dangle': ['error', 'always-multiline'],
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
}],
'func-call-spacing': ['error', 'never'],
'no-console': 'off',
'no-unused-expression': 'off',
'no-useless-constructor': 'off',
'arrow-parens': 'off',
'no-use-before-define': 'off',
'no-return-assign': 'off',
'quotes': ['error', 'single'],
'member-access': 'off',
'member-ordering': 'off',
'object-literal-sort-keys': 'off',
'no-trailing-spaces': 'error',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-extra-parens': ['off'],
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-unused-vars': ['error', {
varsIgnorePattern: '^_',
}],
semi: ["error", "always"],
"no-extra-semi": "error",
"no-extra-parens": "off",
"comma-dangle": ["error", "always-multiline"],
"space-before-function-paren": [
"error",
{
anonymous: "always",
named: "never",
asyncArrow: "always",
},
],
"func-call-spacing": ["error", "never"],
"no-console": "off",
"no-unused-expression": "off",
"no-useless-constructor": "off",
"arrow-parens": "off",
"no-use-before-define": "off",
"no-return-assign": "off",
"member-access": "off",
"member-ordering": "off",
"object-literal-sort-keys": "off",
"no-trailing-spaces": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-extra-parens": ["off"],
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
},
],
},
};
218 changes: 218 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"build:esm": "tsc -b tsconfig.esm.json",
"build-doc": "typedoc src/index.ts --out tsdocs",
"lint": "eslint --ext \".ts\" --ignore-path .gitignore .",
"test": "npm run mocha 'test/**/*.test.ts'",
"prepublish": "npm run build"
},
"repository": "github:solojungle/threads-ts",
Expand All @@ -42,7 +43,10 @@
"chai": "^4.3.4",
"dotenv": "^16.0.3",
"eslint": "^8.30.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"mocha": "^10.0.0",
"sinon": "^19.0.2",
"ts-node": "^10.9.1",
"typedoc": "^0.23.23",
"typescript": "^4.2.4"
Expand Down
Loading

0 comments on commit 9116a4f

Please sign in to comment.