-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy path.eslintrc.json
More file actions
46 lines (46 loc) · 1.67 KB
/
.eslintrc.json
File metadata and controls
46 lines (46 loc) · 1.67 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
{
"root": true,
"env": {
"node": true
},
"extends": "standard",
"plugins": [
"license-header"
],
"rules": {
"license-header/header": ["error", "./dev-utils/license-header.js"],
// Regarding "no-var": The opinion of this repository's maintainers is that
// while const/let are useful, the use of `var` is not bad and therefore
// does not need to be ruled out. Eliminating the use of `var` would be a
// large diff that (a) could theoretically cause bugs due to lexical scoping
// changes and (b) could theoretically impact perf (e.g. see
// https://github.com/microsoft/TypeScript/issues/52924). New code MAY
// prefer const/let over `var`. Code in "examples/" MUST use const/let --
// this is enforced by "examples/.eslintrc.json".
"no-var": "off"
},
"ignorePatterns": [
"/*.example.js", // a pattern for uncommited local dev files to avoid linting
"/*.example.mjs", // a pattern for uncommited local dev files to avoid linting
"/.nyc_output",
"/build",
"node_modules",
"elastic-apm-node.js",
"/examples/esbuild/dist",
"/examples/typescript/dist",
"/examples/nextjs",
"/examples/an-azure-function-app",
"/lib/opentelemetry-bridge/opentelemetry-core-mini",
"/test/babel/out.js",
"/test/lambda/fixtures/esbuild-bundled-handler/hello.js",
"/test/instrumentation/modules/next/a-nextjs-app/pages",
"/test/instrumentation/modules/next/a-nextjs-app/components",
"/test/sourcemaps/fixtures/lib",
"/test/sourcemaps/fixtures/src",
"/test/stacktraces/fixtures/dist",
"/test/types/transpile/index.js",
"/test/types/transpile-default/index.js",
"/test_output",
"tmp"
]
}