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