UNPKG

@tcd-devkit/eslint-config

Version:

ESLint Flat Configuration for core JavaScript rules from @eslint/js, part of the @tcd-devkit.

115 lines 3.76 kB
export declare const baseRules: { 'array-callback-return': ["error", { checkForEach: true; }]; 'no-constructor-return': ["error"]; 'no-duplicate-imports': ["error"]; 'no-promise-executor-return': ["error"]; 'no-self-compare': ["error"]; 'no-template-curly-in-string': ["error"]; 'no-unmodified-loop-condition': ["error"]; 'no-unreachable-loop': ["error"]; 'no-use-before-define': ["error"]; 'no-useless-assignment': ["error"]; 'require-atomic-updates': ["error"]; 'block-scoped-var': ["error"]; camelcase: ["error", { ignoreImports: true; ignoreGlobals: true; }]; 'class-methods-use-this': ["error"]; 'consistent-this': ["error"]; 'default-case': ["error"]; 'default-case-last': ["error"]; 'default-param-last': ["error"]; 'dot-notation': ["error"]; eqeqeq: ["error", "always", { null: "ignore"; }]; 'no-restricted-syntax': ["error", { selector: string; message: string; }, { selector: string; message: string; }]; 'grouped-accessor-pairs': ["error", string]; 'id-length': ["error", { exceptions: string[]; }]; 'max-classes-per-file': ["error"]; 'max-depth': ["error"]; 'max-nested-callbacks': ["error", number]; 'max-params': ["error", { max: number; }]; 'max-statements': ["error", number]; 'new-cap': ["error", { capIsNew: false; newIsCap: true; }]; 'no-alert': ["error"]; 'no-array-constructor': ["error"]; 'no-bitwise': ["error"]; 'no-caller': ["error"]; 'no-console': ["error"]; 'no-else-return': ["error"]; 'no-empty-function': ["error"]; 'no-eval': ["error"]; 'no-extend-native': ["error"]; 'no-extra-bind': ["error"]; 'no-labels': ["error"]; 'no-implicit-coercion': ["error"]; 'no-implied-eval': ["error"]; 'no-invalid-this': ["error"]; 'no-iterator': ["error"]; 'no-lone-blocks': ["error"]; 'no-lonely-if': ["error"]; 'no-loop-func': ["error"]; 'no-multi-assign': ["error"]; 'no-multi-str': ["error"]; 'no-negated-condition': ["error"]; 'no-nested-ternary': ["error"]; 'no-new': ["error"]; 'no-new-func': ["error"]; 'no-new-wrappers': ["error"]; 'no-object-constructor': ["error"]; 'no-param-reassign': ["error"]; 'no-plusplus': ["error"]; 'no-proto': ["error"]; 'no-return-assign': ["error"]; 'no-script-url': ["error"]; 'no-sequences': ["error"]; 'no-shadow': ["error"]; 'no-throw-literal': ["error"]; 'no-undef-init': ["error"]; 'no-unneeded-ternary': ["error"]; 'no-unused-expressions': ["error"]; 'no-unused-private-class-members': ["error"]; 'no-useless-call': ["error"]; 'no-useless-computed-key': ["error"]; 'no-useless-concat': ["error"]; 'no-useless-constructor': ["error"]; 'no-useless-rename': ["error"]; 'no-useless-return': ["error"]; 'no-var': ["error"]; 'object-shorthand': ["error", "always"]; 'operator-assignment': ["error", "always"]; 'prefer-arrow-callback': ["error"]; 'prefer-const': ["error"]; 'prefer-named-capture-group': ["error"]; 'prefer-numeric-literals': ["error"]; 'prefer-object-has-own': ["error"]; 'prefer-object-spread': ["error"]; 'prefer-promise-reject-errors': ["error"]; 'prefer-regex-literals': ["error"]; 'prefer-rest-params': ["error"]; 'prefer-spread': ["error"]; 'prefer-template': ["error"]; radix: ["error", "as-needed"]; 'require-unicode-regexp': ["error"]; 'symbol-description': ["error"]; yoda: ["error", "never"]; }; export type CustomRule = keyof typeof baseRules; //# sourceMappingURL=base.rules.d.ts.map