-
-
Notifications
You must be signed in to change notification settings - Fork 805
Expand file tree
/
Copy patheslint.config.js
More file actions
123 lines (122 loc) · 3.05 KB
/
Copy patheslint.config.js
File metadata and controls
123 lines (122 loc) · 3.05 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import noPrototypeMethods from "@sinonjs/eslint-plugin-no-prototype-methods";
import sinonConfig from "@sinonjs/eslint-config";
export default [
{
ignores: [
"eslint.config.js",
"coverage/**",
".worktrees/**",
"**/.worktrees/**",
"out/**",
"pkg/**",
"lib/**",
"tmp/**",
"**/node_modules/**",
"docs/**",
"vendor/**",
"rollup.config.js",
],
},
...sinonConfig,
{
plugins: {
"@sinonjs/no-prototype-methods": noPrototypeMethods,
},
rules: {
"@sinonjs/no-prototype-methods/no-prototype-methods": "error",
"jsdoc/require-param-type": "off",
"jsdoc/require-jsdoc": "off",
"jsdoc/tag-lines": "off",
},
},
{
files: [
"src/**/*.js",
"test/src/**/*.js",
"*.mjs",
"**/*.mjs",
"scripts/**/*.mjs",
"test/distribution/browser-global-smoke.js",
"test/es2015/check-esm-bundle-is-runnable.js",
],
languageOptions: {
sourceType: "module",
},
rules: {
"no-underscore-dangle": [
"error",
{
allow: ["__dirname"],
},
],
},
},
{
files: ["test/webworker/webworker-support-assessment.js"],
languageOptions: {
globals: {
describe: false,
it: false,
Worker: false,
},
},
},
{
files: ["test/webworker/webworker-script.js"],
languageOptions: {
globals: {
importScripts: false,
onmessage: false,
postMessage: false,
sinon: false,
},
},
},
{
files: [
"build.cjs",
"scripts/**/*.mjs",
"test/distribution/browser-global-smoke.js",
"test/es2015/check-esm-bundle-is-runnable.js",
],
rules: {
"no-console": "off",
"no-implicit-globals": "off",
},
},
{
files: ["*.cjs"],
languageOptions: {
sourceType: "script",
},
},
{
files: ["**/*-test.js", "test/**/*.js"],
rules: {
"@sinonjs/no-prototype-methods/no-prototype-methods": "off",
"max-nested-callbacks": "off",
},
},
{
files: ["**/*-tests.*"],
rules: {
"@sinonjs/no-prototype-methods/no-prototype-methods": "off",
"max-nested-callbacks": "off",
},
},
{
files: ["test/src/shared-spy-stub-everything-tests.js"],
rules: {
"mocha/no-exports": "off",
},
},
{
files: [
"src/sinon/util/core/walk-object.js",
"src/sinon/util/core/walk.js",
],
rules: {
"no-implicit-globals": "off",
},
},
];