-
Notifications
You must be signed in to change notification settings - Fork 544
/
Copy path.eslintrc.cjs
47 lines (45 loc) · 1.23 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
46
47
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
const {
importInternalModulesAllowed,
importInternalModulesAllowedForTest,
} = require("../../.eslintrc.data.cjs");
module.exports = {
extends: [
require.resolve("@fluidframework/eslint-config-fluid/minimal-deprecated"),
"prettier",
"../../.eslintrc.cjs",
],
rules: {
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off", // requires strictNullChecks
"@typescript-eslint/strict-boolean-expressions": "off",
"import/no-internal-modules": [
"error",
{
// package hasn't converted to barrel files (which may not be a bad thing)
allow: importInternalModulesAllowed.concat(["*/*.js"]),
},
],
"max-len": "off",
"no-bitwise": "off",
"no-case-declarations": "off",
},
parserOptions: {
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
},
// This should not be needed. For some reason no overrides from "../../.eslintrc.cjs" come thru.
overrides: [
{
files: ["*.spec.ts", "src/test/**"],
rules: {
"import/no-internal-modules": [
"error",
{ allow: importInternalModulesAllowedForTest },
],
},
},
],
};