-
Notifications
You must be signed in to change notification settings - Fork 568
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
33 lines (30 loc) · 873 Bytes
/
.eslintrc.cjs
File metadata and controls
33 lines (30 loc) · 873 Bytes
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
31
32
33
/*!
* 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: {
// Disabled because they conflict with Prettier.
"unicorn/no-nested-ternary": "off",
// Disabled because it is incompatible with API-Extractor.
"@typescript-eslint/no-namespace": "off",
},
overrides: [
{
// Overrides for test files
files: ["src/test/**"],
plugins: ["chai-expect"],
extends: ["plugin:chai-expect/recommended"],
rules: {
"import-x/no-nodejs-modules": "off",
"unicorn/prefer-module": "off",
// Superseded by chai-expect rule
"@typescript-eslint/no-unused-expressions": "off",
},
},
],
};