@u3u/eslint-config
Version:
My ESLint config
103 lines (102 loc) • 4.65 kB
TypeScript
declare const _default: {
extends: string[];
parser: string;
parserOptions: {
project: string;
tsconfigRootDir: string;
};
plugins: string[];
rules: {
'@typescript-eslint/array-type': "warn";
'@typescript-eslint/ban-tslint-comment': "warn";
'@typescript-eslint/ban-types': "warn";
'@typescript-eslint/consistent-generic-constructors': "warn";
'@typescript-eslint/consistent-indexed-object-style': "warn";
'@typescript-eslint/consistent-type-assertions': "warn";
'@typescript-eslint/consistent-type-definitions': "warn";
'@typescript-eslint/consistent-type-exports': "warn";
'@typescript-eslint/consistent-type-imports': ["warn", {
disallowTypeAnnotations: boolean;
fixStyle: string;
}];
'@typescript-eslint/dot-notation': ["warn", {
allowIndexSignaturePropertyAccess: boolean;
allowKeywords: boolean;
}];
'@typescript-eslint/explicit-member-accessibility': ["warn", {
accessibility: string;
}];
'@typescript-eslint/lines-between-class-members': "warn";
'@typescript-eslint/method-signature-style': ["warn", string];
'@typescript-eslint/no-array-constructor': "warn";
'@typescript-eslint/no-confusing-non-null-assertion': "warn";
'@typescript-eslint/no-duplicate-type-constituents': "warn";
'@typescript-eslint/no-extra-non-null-assertion': "warn";
'@typescript-eslint/no-import-type-side-effects': "warn";
'@typescript-eslint/no-inferrable-types': "warn";
'@typescript-eslint/no-meaningless-void-operator': "warn";
'@typescript-eslint/no-unnecessary-boolean-literal-compare': "warn";
'@typescript-eslint/no-unnecessary-qualifier': "warn";
'@typescript-eslint/no-unnecessary-type-arguments': "warn";
'@typescript-eslint/no-unnecessary-type-assertion': "warn";
'@typescript-eslint/no-useless-empty-export': "warn";
'@typescript-eslint/non-nullable-type-assertion-style': "warn";
'@typescript-eslint/padding-line-between-statements': ["warn", {
readonly blankLine: "always";
readonly next: readonly ["block-like", "multiline-expression", "return", "throw", "break", "continue", "debugger"];
readonly prev: "*";
}, {
readonly blankLine: "always";
readonly next: "*";
readonly prev: readonly ["block-like", "multiline-expression", "multiline-const", "multiline-let", "multiline-var"];
}, {
readonly blankLine: "always";
readonly next: "*";
readonly prev: "directive";
}, {
readonly blankLine: "any";
readonly next: "directive";
readonly prev: "directive";
}, {
readonly blankLine: "always";
readonly next: "*";
readonly prev: "import";
}, {
readonly blankLine: "any";
readonly next: "import";
readonly prev: "import";
}, {
readonly blankLine: "always";
readonly next: "*";
readonly prev: readonly ["singleline-const", "singleline-let", "singleline-var"];
}, {
readonly blankLine: "any";
readonly next: readonly ["singleline-const", "singleline-let", "singleline-var"];
readonly prev: readonly ["singleline-const", "singleline-let", "singleline-var"];
}, {
blankLine: string;
next: string[];
prev: string;
}];
'@typescript-eslint/prefer-as-const': "warn";
'@typescript-eslint/prefer-for-of': "warn";
'@typescript-eslint/prefer-function-type': "warn";
'@typescript-eslint/prefer-includes': "warn";
'@typescript-eslint/prefer-namespace-keyword': "warn";
'@typescript-eslint/prefer-optional-chain': "warn";
'@typescript-eslint/prefer-reduce-type-parameter': "warn";
'@typescript-eslint/prefer-regexp-exec': "warn";
'@typescript-eslint/prefer-string-starts-ends-with': "warn";
'@typescript-eslint/prefer-ts-expect-error': "warn";
'@typescript-eslint/return-await': "warn";
'@typescript-eslint/sort-type-constituents': "warn";
'dot-notation': "off";
'lines-around-comment': "off";
'lines-between-class-members': "off";
'no-array-constructor': "off";
'no-return-await': "off";
'padding-line-between-statements': "off";
};
};
export { _default as default };
export = _default