forked from emberjs/data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
34 lines (30 loc) · 1.06 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
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: [
'ember-inflector',
'@ember/application',
'@ember/service',
'@ember/debug',
'@ember/object',
'@ember/string',
'@ember/object/mixin',
],
}),
{}
),
ignorePatterns: ignore.ignoreRules(),
overrides: [node.config(), node.defaults(), typescript.defaults()],
};