-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.js
35 lines (33 loc) · 965 Bytes
/
.eslintrc.js
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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
"use strict";
module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:eslint-plugin/recommended",
"plugin:node/recommended",
"prettier",
"plugin:eslint-plugin/recommended"
],
plugins: ["header"],
env: {
node: true,
es6: true
},
parserOptions: {
ecmaVersion: 2021, // Allows the latest ECMAScript features
sourceType: "module" // Ensures `import` and `export` syntax are valid
},
overrides: [
{
files: ["tests/**/*.js"],
env: { mocha: true }
}
],
rules: {
"header/header": [2, "line", [" Copyright (c) Microsoft Corporation.", " Licensed under the MIT License."], 2],
"no-console": "warn" // Add this to warn about console statements
},
ignorePatterns: ["node_modules", "dist/", "scripts"]
};