@git-validator/eslint-config
Version:
A strict eslint config for better code quality.
371 lines • 14.2 kB
TypeScript
import tsParser from "@typescript-eslint/parser";
import deprecationPlugin from "eslint-plugin-deprecation";
declare const _default: {
files: string[];
languageOptions: {
parser: typeof tsParser;
parserOptions: {
tsconfigRootDir: string;
project: string | undefined;
ecmaFeatures: {
jsx: boolean;
};
};
globals: {
[x: string]: boolean;
};
};
plugins: {
deprecation: typeof deprecationPlugin;
"@typescript-eslint": {
configs: Record<string, import("@typescript-eslint/utils/ts-eslint").ClassicConfig.Config>;
meta: import("@typescript-eslint/utils/ts-eslint").SharedConfig.PluginMeta;
rules: import("@typescript-eslint/eslint-plugin/use-at-your-own-risk/rules").TypeScriptESLintRules;
};
fp: unknown;
n: unknown;
import: unknown;
promise: unknown;
react: unknown;
"react-hooks": unknown;
unicorn: unknown;
"simple-import-sort": unknown;
"@git-validator": {
rules: {
[x: string]: import("@typescript-eslint/utils/ts-eslint").RuleModule<string, unknown[], import("@typescript-eslint/utils/ts-eslint").RuleListener> | import("@typescript-eslint/utils/ts-eslint").RuleModule<"import-regex", string[], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
};
};
};
rules: {
"@typescript-eslint/no-explicit-any"?: unknown;
"@typescript-eslint/consistent-type-assertions": unknown;
"@typescript-eslint/no-non-null-assertion": unknown;
"deprecation/deprecation": string;
"@git-validator/exact-map-set-type": string;
"@git-validator/no-const-enum": string;
"@git-validator/no-declares-in-ts-file": string;
"@git-validator/no-export-assignment": string;
"@git-validator/no-property-decorator": string;
"@typescript-eslint/await-thenable": string;
"@typescript-eslint/ban-ts-comment": (string | {
"ts-expect-error": boolean;
"ts-ignore": boolean;
"ts-nocheck": boolean;
})[];
"@typescript-eslint/ban-types": string;
"@typescript-eslint/consistent-generic-constructors": string;
"@typescript-eslint/consistent-indexed-object-style": string;
"@typescript-eslint/consistent-type-exports": string;
"@typescript-eslint/method-signature-style": string;
"@typescript-eslint/naming-convention": (string | {
selector: string;
format: string[];
types?: never;
} | {
selector: string;
types: string[];
format: string[];
})[];
"@typescript-eslint/no-array-delete": string;
"@typescript-eslint/no-confusing-non-null-assertion": string;
"@typescript-eslint/no-duplicate-enum-values": string;
"@typescript-eslint/no-duplicate-type-constituents": string;
"@typescript-eslint/no-floating-promises": (string | {
ignoreVoid: boolean;
})[];
"@typescript-eslint/no-for-in-array": string;
"@typescript-eslint/no-import-type-side-effects": string;
"@typescript-eslint/no-inferrable-types": string;
"@typescript-eslint/no-misused-new": string;
"@typescript-eslint/no-misused-promises": (string | {
checksVoidReturn: {
returns: boolean;
arguments: boolean;
variables: boolean;
};
})[];
"@typescript-eslint/no-mixed-enums": string;
"@typescript-eslint/no-namespace": string;
"@typescript-eslint/no-require-imports": string;
"@typescript-eslint/no-unnecessary-condition": string;
"@typescript-eslint/no-unnecessary-type-assertion": string;
"@typescript-eslint/only-throw-error": string;
"@typescript-eslint/prefer-ts-expect-error": string;
"@typescript-eslint/restrict-plus-operands": string;
"@typescript-eslint/return-await": string[];
"@typescript-eslint/unbound-method": string;
"init-declarations": unknown;
'lines-between-class-members': unknown;
"max-params": unknown;
'no-array-constructor': unknown;
'no-dupe-class-members': unknown;
'no-implied-eval': unknown;
"no-invalid-this": unknown;
'no-loss-of-precision': unknown;
'no-redeclare': unknown;
"no-shadow": unknown;
'no-throw-literal': unknown;
'no-unused-expressions': unknown;
'no-unused-vars': unknown;
'no-use-before-define': unknown;
'no-useless-constructor': unknown;
'prefer-promise-reject-errors': unknown;
"@typescript-eslint/init-declarations"?: unknown;
"@typescript-eslint/lines-between-class-members"?: unknown;
"@typescript-eslint/max-params"?: unknown;
"@typescript-eslint/no-array-constructor"?: unknown;
"@typescript-eslint/no-dupe-class-members"?: unknown;
"@typescript-eslint/no-implied-eval"?: unknown;
"@typescript-eslint/no-invalid-this"?: unknown;
"@typescript-eslint/no-loss-of-precision"?: unknown;
"@typescript-eslint/no-redeclare"?: unknown;
"@typescript-eslint/no-shadow"?: unknown;
"@typescript-eslint/no-throw-literal"?: unknown;
"@typescript-eslint/no-unused-expressions"?: unknown;
"@typescript-eslint/no-unused-vars"?: unknown;
"@typescript-eslint/no-use-before-define"?: unknown;
"@typescript-eslint/no-useless-constructor"?: unknown;
"@typescript-eslint/prefer-promise-reject-errors"?: unknown;
"arrow-body-style": string[];
"import/newline-after-import": (string | {
count: number;
})[];
"simple-import-sort/imports": (string | {
groups: string[][];
})[];
"simple-import-sort/exports": string;
"unicorn/prefer-node-protocol": string;
"unicorn/escape-case": string;
"func-name-matching": string;
"no-duplicate-imports": string;
"no-implicit-coercion": (string | {
disallowTemplateShorthand: boolean;
allow: string[];
})[];
"no-multi-assign": string;
"no-plusplus": string;
"no-unused-private-class-members": string;
"prefer-exponentiation-operator": string;
"prefer-object-has-own": string;
"fp/no-arguments": string;
"fp/no-delete": string;
"import/extensions": (string | {
ignorePackages: boolean;
})[];
"import/no-commonjs": (string | {
allowRequire: boolean;
allowConditionalRequire: boolean;
allowPrimitiveModules: boolean;
})[];
"import/no-dynamic-require": string;
"import/no-mutable-exports": string;
"import/no-relative-packages": string;
"import/no-self-import": string;
"n/no-sync": string;
"n/prefer-global/process": string[];
"n/prefer-global/buffer": string[];
"react/jsx-key": string;
"react/jsx-no-duplicate-props": string;
"react/jsx-no-undef": string;
"react-hooks/exhaustive-deps": string;
"react-hooks/rules-of-hooks": string;
"unicorn/consistent-destructuring": string;
"unicorn/error-message": string;
"unicorn/filename-case": (string | {
cases: {
kebabCase: boolean;
pascalCase: boolean;
};
})[];
"unicorn/import-style": (string | {
styles: {
"node:path": {
default: boolean;
};
"node:util": {
named: boolean;
};
};
})[];
"unicorn/new-for-builtins": string;
"unicorn/no-abusive-eslint-disable": string;
"unicorn/no-array-callback-reference": string;
"unicorn/no-for-loop": string;
"unicorn/no-instanceof-array": string;
"unicorn/no-new-array": string;
"unicorn/no-new-buffer": string;
"unicorn/no-typeof-undefined": string;
"unicorn/no-unreadable-iife": string;
"unicorn/prefer-array-flat-map": string;
"unicorn/prefer-module": string;
"unicorn/prefer-number-properties": string;
"unicorn/prefer-string-slice": string;
"unicorn/throw-new-error": string;
"@git-validator/ban-ts-comment": string;
"@git-validator/import-regex": string;
"@git-validator/new-parens": string;
"@git-validator/no-dynamic-import": string;
"@git-validator/no-for-in": string;
"@git-validator/no-instanceof-builtin": string;
"@git-validator/no-legacy-getter-setter": string;
"@git-validator/prefer-global-this": string;
"@git-validator/prefer-shortest-relative-path": string;
'no-var': string;
'object-shorthand': string[];
'accessor-pairs': (string | {
setWithoutGet: boolean;
enforceForClassMembers: boolean;
})[];
'array-callback-return': (string | {
allowImplicit: boolean;
checkForEach: boolean;
})[];
camelcase: (string | {
allow: string[];
properties: string;
ignoreGlobals: boolean;
})[];
'constructor-super': string;
'default-case-last': string;
eqeqeq: (string | {
null: string;
})[];
'new-cap': (string | {
newIsCap: boolean;
capIsNew: boolean;
properties: boolean;
})[];
'no-async-promise-executor': string;
'no-caller': string;
'no-case-declarations': string;
'no-class-assign': string;
'no-compare-neg-zero': string;
'no-cond-assign': string;
'no-const-assign': string;
'no-constant-condition': (string | {
checkLoops: boolean;
})[];
'no-control-regex': string;
'no-debugger': string;
'no-delete-var': string;
'no-dupe-args': string;
'no-dupe-keys': string;
'no-duplicate-case': string;
'no-useless-backreference': string;
'no-empty': (string | {
allowEmptyCatch: boolean;
})[];
'no-empty-character-class': string;
'no-empty-pattern': string;
'no-eval': string;
'no-ex-assign': string;
'no-extend-native': string;
'no-extra-bind': string;
'no-extra-boolean-cast': string;
'no-fallthrough': string;
'no-func-assign': string;
'no-global-assign': string;
'no-import-assign': string;
'no-invalid-regexp': string;
'no-irregular-whitespace': string;
'no-iterator': string;
'no-labels': (string | {
allowLoop: boolean;
allowSwitch: boolean;
})[];
'no-lone-blocks': string;
'no-misleading-character-class': string;
'no-prototype-builtins': string;
'no-useless-catch': string;
'no-multi-str': string;
'no-new': string;
'no-new-func': string;
'no-new-object': string;
'no-new-symbol': string;
'no-new-wrappers': string;
'no-obj-calls': string;
'no-octal': string;
'no-octal-escape': string;
'no-proto': string;
'no-regex-spaces': string;
'no-return-assign': string[];
'no-self-assign': (string | {
props: boolean;
})[];
'no-self-compare': string;
'no-sequences': string;
'no-shadow-restricted-names': string;
'no-sparse-arrays': string;
'no-template-curly-in-string': string;
'no-this-before-super': string;
'no-undef': string;
'no-undef-init': string;
'no-unmodified-loop-condition': string;
'no-unneeded-ternary': (string | {
defaultAssignment: boolean;
})[];
'no-unreachable': string;
'no-unreachable-loop': string;
'no-unsafe-finally': string;
'no-unsafe-negation': string;
'no-useless-call': string;
'no-useless-computed-key': string;
'no-useless-escape': string;
'no-useless-rename': string;
'no-useless-return': string;
'no-void': string;
'no-with': string;
'one-var': (string | {
initialized: string;
})[];
'prefer-const': (string | {
destructuring: string;
})[];
'prefer-regex-literals': (string | {
disallowRedundantWrapping: boolean;
})[];
'spaced-comment': (string | {
line: {
markers: string[];
};
block: {
balanced: boolean;
markers: string[];
exceptions: string[];
};
})[];
'symbol-description': string;
'unicode-bom': string[];
'use-isnan': (string | {
enforceForSwitchCase: boolean;
enforceForIndexOf: boolean;
})[];
'valid-typeof': (string | {
requireStringLiterals: boolean;
})[];
yoda: string[];
'import/export': string;
'import/first': string;
'import/no-absolute-path': (string | {
esmodule: boolean;
commonjs: boolean;
amd: boolean;
})[];
'import/no-duplicates': string;
'import/no-named-default': string;
'import/no-webpack-loader-syntax': string;
'n/handle-callback-err': string[];
'n/no-callback-literal': string;
'n/no-deprecated-api': string;
'n/no-exports-assign': string;
'n/no-new-require': string;
'n/no-path-concat': string;
'n/process-exit-as-throw': string;
'promise/param-names': string;
};
linterOptions: {
reportUnusedDisableDirectives: boolean;
};
}[];
export default _default;
//# sourceMappingURL=ts-config.d.ts.map