@oceanicjs/builders
Version:
Helpful builders for various Discord related things.
304 lines (303 loc) • 8.47 kB
JSON
{
"env": {
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": false,
"forOf": true,
"spread": true,
"modules": true,
"classes": true,
"generators": true,
"restParams": true,
"regexUFlag": true,
"regexYFlag": true,
"globalReturn": true,
"destructuring": true,
"impliedStrict": true,
"blockBindings": true,
"defaultParams": true,
"octalLiterals": true,
"arrowFunctions": true,
"binaryLiterals": true,
"templateStrings": true,
"superInFunctions": true,
"unicodeCodePointEscapes": true,
"objectLiteralShorthandMethods": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandProperties": true
}
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"eslint-plugin-prefer-arrow",
"@typescript-eslint",
"jsdoc",
"import-newlines",
"unused-imports"
],
"rules": {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "generic"
}
],
"@typescript-eslint/consistent-indexed-object-style": ["error", "record"],
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "as"
}
],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/dot-notation": [
"error",
{
"allowPrivateClassPropertyAccess": true,
"allowProtectedClassPropertyAccess": true
}
],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "no-public"
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": true
}
}
],
"@typescript-eslint/method-signature-style": ["error", "method"],
"@typescript-eslint/no-duplicate-imports": "error",
"@typescript-eslint/no-empty-function": [
"error",
{
"allow": ["arrowFunctions"]
}
],
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": true,
"allowedNames": ["self"]
}
],
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"@typescript-eslint/require-await": "off",
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": ["error", "as-needed"],
"brace-style": ["error", "1tbs"],
"comma-dangle": "error",
"complexity": "off",
"dot-notation": "off",
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"guard-for-in": "error",
"import-newlines/enforce": ["error", 4],
"import/no-extraneous-dependencies": "off",
"import/order": [
"error",
{
"groups": [
"index",
"sibling",
"parent",
"internal",
"external",
"builtin",
"object"
]
}
],
"indent": "off",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "error",
"jsdoc/no-undefined-types": "error",
"key-spacing": [
"error",
{
"align": "value"
}
],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"new-parens": ["error", "always"],
"no-caller": "error",
"no-console": "off",
"no-debugger": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "off",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-empty-function": "off",
"no-eval": "error",
"no-extra-bind": "error",
"no-fallthrough": "error",
"no-inner-declarations": "off",
"no-invalid-this": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 2,
"maxBOF": 1,
"maxEOF": 1
}
],
"no-new-func": "error",
"no-new-wrappers": "error",
"no-redeclare": "off",
"no-return-await": "error",
"no-sequences": "error",
"no-shadow": "off",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unsafe-finally": "error",
"no-unused-labels": "error",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"object-shorthand": "error",
"one-var": "off",
"prefer-arrow-callback": "off",
"prefer-arrow/prefer-arrow-functions": "off",
"prefer-const": "error",
"prefer-numeric-literals": "error",
"prefer-object-spread": "error",
"quote-props": ["error", "consistent-as-needed"],
"radix": "error",
"space-before-function-paren": "off",
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"spaced-comment": [
"error",
"always",
{
"markers": ["/"]
}
],
"template-curly-spacing": ["error", "never"],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": "off",
"use-isnan": "error",
"valid-typeof": [
"error",
{
"requireStringLiterals": true
}
],
"@typescript-eslint/no-redeclare": ["error"],
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/member-ordering": [
"error",
{
"default": {
"memberTypes": [
"signature",
"private-static-field",
"protected-static-field",
"static-field",
"private-field",
"protected-field",
"field",
"abstract-field",
"private-abstract-method",
"protected-abstract-method",
"abstract-method",
"private-constructor",
"protected-constructor",
"constructor",
"private-static-method",
"protected-static-method",
"static-method",
"private-method",
"protected-method",
"private-get",
"protected-get",
"get",
"private-set",
"protected-set",
"set",
"method"
],
"order": "alphabetically"
}
}
],
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"@typescript-eslint/explicit-function-return-type": "error",
"jsdoc/newline-after-description": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"curly": ["error", "all"],
"object-curly-newline": ["error", { "multiline": true }]
}
}