-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy patheslint.config.js
More file actions
29 lines (25 loc) · 924 Bytes
/
eslint.config.js
File metadata and controls
29 lines (25 loc) · 924 Bytes
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
// SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
export default [
{
files: ["**/*.js", "**/*.ts"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
// Possible errors
"no-console": "off",
"no-debugger": "warn",
"no-undef": "off", // no global checking
"no-unused-vars": "off", // turned off since unused exports may be used by other files
// Best practices
"eqeqeq": ["error", "always"], // changed from error to warn
"no-var": "error", // changed from error to warn
"prefer-const": "error", // turned off for more flexibility
// Stylistic
"semi": ["error", "never"], // Enforce no semicolons
"quotes": ["error", "double", { avoidEscape: true }], // Enforce double quotes
},
},
]