forked from warp-drive-data/warp-drive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
31 lines (27 loc) · 795 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
31 lines (27 loc) · 795 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
// @ts-check
import { globalIgnores } from '@warp-drive/internal-config/eslint/ignore.js';
import * as node from '@warp-drive/internal-config/eslint/node.js';
import * as typescript from '@warp-drive/internal-config/eslint/typescript.js';
/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
// all ================
globalIgnores(),
// browser (js/ts) ================
typescript.browser({
srcDirs: ['src'],
allowedImports: ['@ember/test-helpers', '@glimmer/manager', '@ember/runloop'],
rules: {
'no-console': 'off',
},
}),
// node (module) ================
node.esm({
files: ['server/**/*.{js,ts}'],
globals: { Bun: true },
rules: {
'no-console': 'off',
},
}),
// node (script) ================
node.cjs(),
];