forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
30 lines (27 loc) · 918 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
module.exports = {
extends: [require.resolve("@fluidframework/eslint-config-fluid/strict"), "prettier"],
parserOptions: {
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
},
rules: {
// This has been disabled in the next eslint-config-fluid.
// Once the dependency here has been updated, this override can be removed.
"unicorn/numeric-separators-style": "off",
},
overrides: [
{
// Rules only for test files
files: ["*.spec.ts", "*.test.ts", "src/test/**"],
rules: {
// Test files are run in node only so additional node libraries can be used.
"import/no-nodejs-modules": ["error", { allow: ["node:assert", "node:process"] }],
// Does not work well with describe/it block scoping
"unicorn/consistent-function-scoping": "off",
},
},
],
};