forked from tylerbutler/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
57 lines (48 loc) · 1.46 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
48
49
50
51
52
53
54
55
56
57
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
module.exports = {
plugins: ["@typescript-eslint"],
extends: [
"oclif",
"oclif-typescript",
// eslint-disable-next-line node/no-extraneous-require
require.resolve("@fluidframework/eslint-config-fluid/minimal"),
"prettier",
],
rules: {
"@typescript-eslint/no-unused-vars": "warn",
"unused-imports/no-unused-imports": "warn",
// This package is exclusively used in a Node.js context
"import/no-nodejs-modules": "off",
// oclif uses default exports for commands
"import/no-default-export": "off",
// This package uses interfaces and types that are not exposed directly by oclif and npm-check-updates.
// We also call commands' run method directly in some cases, so these are all excluded.
"import/no-internal-modules": [
"error",
{
allow: [
"@oclif/core/lib/interfaces",
"npm-check-updates/build/src/types/**",
"**/commands/**",
],
},
],
// Superseded by prettier and @trivago/prettier-plugin-sort-imports
"import/order": "off",
"jsdoc/multiline-blocks": [
"error",
{
noSingleLineBlocks: true,
},
],
// The default for this rule is 4, but 5 is better
"max-params": ["warn", 5],
// Causes issues with some versions of node
"unicorn/prefer-node-protocol": "off",
// Deprecated in 2018: https://eslint.org/blog/2018/11/jsdoc-end-of-life/
"valid-jsdoc": "off",
},
};