forked from emberjs/data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
32 lines (26 loc) · 927 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
31
32
// @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';
const AllowedImports = ['@ember/application', '@ember/service', '@ember/debug', '@ember/object', '@ember/object/mixin'];
/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
// all ================
globalIgnores(),
// browser (js) ================
js.browser({
srcDirs: ['src'],
allowedImports: AllowedImports,
}),
// browser (js/ts) ================
typescript.browser({
files: ['**/*.ts', '**/*.gts'],
srcDirs: ['src'],
allowedImports: AllowedImports,
}),
// node (module) ================
node.esm(),
// node (script) ================
node.cjs(),
];