forked from emberjs/data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
39 lines (35 loc) · 1.22 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
32
33
34
35
36
37
38
39
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(),
...base.settings(),
plugins: [...base.plugins(), ...imports.plugins()],
extends: [...base.extend()],
rules: Object.assign(
base.rules(),
imports.rules(),
isolation.rules({
allowedImports: [
'ember-inflector',
'@ember/array',
'@ember/array/proxy',
'@ember/debug',
'@ember/string',
'@ember/object/internals',
'@ember/object/proxy',
'@ember/object/computed',
'@ember/object',
'@ember/application',
'@ember/object/promise-proxy-mixin',
],
}),
{}
),
ignorePatterns: ignore.ignoreRules(),
overrides: [node.config(), node.defaults(), typescript.defaults()],
};