forked from emberjs/data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
31 lines (27 loc) · 1.01 KB
/
.eslintrc.cjs
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
const imports = require('@warp-drive/internal-config/eslint/imports.cjs');
const parser = require('@warp-drive/internal-config/eslint/parser.cjs');
const isolation = require('@warp-drive/internal-config/eslint/isolation.cjs');
const ignore = require('@warp-drive/internal-config/eslint/ignore.cjs');
const node = require('@warp-drive/internal-config/eslint/node.cjs');
const base = require('@warp-drive/internal-config/eslint/base.cjs');
const typescript = require('@warp-drive/internal-config/eslint/typescript.cjs');
module.exports = {
...parser.defaults(),
plugins: [...base.plugins(), ...imports.plugins()],
extends: [...base.extend()],
rules: Object.assign(
base.rules(),
imports.rules(),
isolation.rules({
allowedImports: [
'@glimmer/tracking/primitives/cache',
'@ember/debug',
'@ember/-internals/metal',
'@glimmer/validator',
],
}),
{}
),
ignorePatterns: ignore.ignoreRules(),
overrides: [node.config(), node.defaults(), typescript.defaults()],
};