-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy patheslint.config.mjs
41 lines (36 loc) · 1.09 KB
/
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
33
34
35
36
37
38
39
40
41
// @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 qunit from '@warp-drive/internal-config/eslint/qunit.js';
/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
// all ================
globalIgnores(),
// browser (js/ts) ================
typescript.browser({
srcDirs: ['src'],
allowedImports: [
'@embroider/macros',
'@ember/application/namespace',
'ember',
'@ember/debug',
'@ember/array/proxy',
'@ember/object/promise-proxy-mixin',
'@ember/object/proxy',
'@ember/application',
],
rules: {
'@typescript-eslint/no-unsafe-assignment': 'off',
},
}),
// node (module) ================
node.esm(),
// node (script) ================
node.cjs(),
// Test Support ================
qunit.ember({
files: ['src/test-support/**/*.{js,ts}'],
allowedImports: ['@ember/debug', '@ember/owner'],
}),
];