-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
eslint.config.mjs
30 lines (25 loc) · 966 Bytes
/
eslint.config.mjs
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
// @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';
import * as js from '@warp-drive/internal-config/eslint/browser.js';
/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
// all ================
globalIgnores(),
// browser (js) ================
js.browser({
srcDirs: ['src'],
allowedImports: ['@ember/object', '@ember/application', '@ember/service', '@ember/debug', '@ember/object/mixin'],
}),
// browser (ts) ================
typescript.browser({
files: ['**/*.ts', '**/*.gts'],
srcDirs: ['src'],
allowedImports: ['@ember/object', '@ember/application', '@ember/service', '@ember/debug', '@ember/object/mixin'],
}),
// node (module) ================
node.esm(),
// node (script) ================
node.cjs(),
];