-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy patheslint.config.js
More file actions
36 lines (35 loc) · 979 Bytes
/
Copy patheslint.config.js
File metadata and controls
36 lines (35 loc) · 979 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
29
30
31
32
33
34
35
36
const js = require("@eslint/js");
const globals = require("globals");
// Flat config (ESLint 9+). Plain Node ES2021 sources; default espree parser.
module.exports = [
{
// TypeScript declaration files are hand-maintained and covered by
// prettier; eslint's JS rules don't apply to .d.ts.
// coverage/ and node_modules/ are generated/vendored and not linted.
ignores: ["**/*.d.ts", "coverage/**", "node_modules/**"],
},
js.configs.recommended,
{
files: ["**/*.js", "**/*.jsx"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "commonjs",
globals: {
...globals.browser,
...globals.node,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
globalThis: "readonly",
describe: true,
it: true,
before: true,
after: true,
beforeEach: true,
afterEach: true,
},
},
rules: {
indent: "off", // Managed by prettier
},
},
];