-
Notifications
You must be signed in to change notification settings - Fork 543
/
Copy path.eslintrc.cjs
45 lines (42 loc) · 1.43 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*!
* 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/mocha/tsconfig.json",
"./src/test/jest/tsconfig.json",
"./src/test/types/tsconfig.json",
],
},
rules: {
// This package is being deprecated, so it's okay to use deprecated APIs.
"import/no-deprecated": "off",
// This package uses node's events APIs.
// This should probably be reconsidered, but until then we will leave an exception for it here.
"import/no-nodejs-modules": ["error", { allow: ["events"] }],
// This package has been deprecated. The following rules have a significant number of violations
// that will not be fixed here.
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"unicorn/text-encoding-identifier-case": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-code-point": "off",
},
overrides: [
{
files: ["src/test/**/*"],
rules: {
// It's fine for tests to use node.js modules.
"import/no-nodejs-modules": "off",
},
},
],
};