FluidFramework/tools/benchmark/.eslintrc.cjs

28 строки
678 B
JavaScript

/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
module.exports = {
extends: [require.resolve("@fluidframework/eslint-config-fluid"), "prettier"],
parserOptions: {
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
},
rules: {
"@typescript-eslint/no-shadow": "off",
"space-before-function-paren": "off", // Off because it conflicts with typescript-formatter
"import/no-nodejs-modules": [
"error",
{ allow: ["node:v8", "perf_hooks", "node:child_process"] },
],
},
overrides: [
{
files: ["src/test/**"],
rules: {
"import/no-nodejs-modules": "off",
},
},
],
};