50 lines
2.4 KiB
Plaintext
50 lines
2.4 KiB
Plaintext
"use strict";
|
|
// THIS CODE WAS AUTOMATICALLY GENERATED
|
|
// DO NOT EDIT THIS CODE BY HAND
|
|
// SEE https://typescript-eslint.io/users/configs
|
|
//
|
|
// For developers working in the typescript-eslint monorepo:
|
|
// You can regenerate it using `pnpm run generate-configs`
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const base_1 = __importDefault(require("./base"));
|
|
const eslint_recommended_1 = __importDefault(require("./eslint-recommended"));
|
|
/**
|
|
* Contains all of `stylistic`, along with additional stylistic rules that require type information.
|
|
* @see {@link https://typescript-eslint.io/users/configs#stylistic-type-checked}
|
|
*/
|
|
exports.default = (plugin, parser) => [
|
|
(0, base_1.default)(plugin, parser),
|
|
(0, eslint_recommended_1.default)(plugin, parser),
|
|
{
|
|
name: 'typescript-eslint/stylistic-type-checked',
|
|
rules: {
|
|
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
|
'@typescript-eslint/array-type': 'error',
|
|
'@typescript-eslint/ban-tslint-comment': 'error',
|
|
'@typescript-eslint/class-literal-property-style': 'error',
|
|
'@typescript-eslint/consistent-generic-constructors': 'error',
|
|
'@typescript-eslint/consistent-indexed-object-style': 'error',
|
|
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
'@typescript-eslint/consistent-type-definitions': 'error',
|
|
'dot-notation': 'off',
|
|
'@typescript-eslint/dot-notation': 'error',
|
|
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
|
'no-empty-function': 'off',
|
|
'@typescript-eslint/no-empty-function': 'error',
|
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
|
|
'@typescript-eslint/prefer-find': 'error',
|
|
'@typescript-eslint/prefer-for-of': 'error',
|
|
'@typescript-eslint/prefer-function-type': 'error',
|
|
'@typescript-eslint/prefer-includes': 'error',
|
|
'@typescript-eslint/prefer-nullish-coalescing': 'error',
|
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
'@typescript-eslint/prefer-regexp-exec': 'error',
|
|
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
},
|
|
},
|
|
];
|