@rushstack/eslint-config
Version:
A TypeScript ESLint ruleset designed for large teams and projects
27 lines (23 loc) • 1.13 kB
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
// This profile enables lint rules intended for a Node.js project whose inputs will always
// come from a developer or other trusted source. Most build system tasks are like this,
// since they operate on exclusively files prepared by a developer.
//
// This profile disables certain security rules that would otherwise prohibit APIs that could
// cause a denial-of-service by consuming too many resources, or which might interact with
// the filesystem in unsafe ways. Such activities are safe and commonplace for a trusted tool.
//
// DO NOT use this profile for a library project that might also be loaded by a Node.js service;
// use "@rushstack/eslint-config/profiles/node" instead.
const { commonConfig } = require('./_common');
module.exports = [
...commonConfig,
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
// This is disabled for trusted tools because the tool is known to be safe.
'@rushstack/security/no-unsafe-regexp': 'off'
}
}
];