This repository was archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
53 lines (50 loc) · 1.69 KB
/
index.js
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
42
43
44
45
46
47
48
49
50
51
52
53
'use strict';
module.exports = {
extends: [
require.resolve('@clark/eslint-config-ember'),
require.resolve('@clark/eslint-config-typescript'),
],
/**
* Since the order of application is `ember` and _then_ `typescript`, rules
* set in `typescript` and it's base configs, override configs in `ember`.
* This also includes the full eslint base config again, for which we want to
* disable or diminish a few rules.
*/
rules: require('@clark/eslint-config-ember').rules,
/**
* Since the order of application is `ember` and _then_ `typescript`, rules
* set in `typescript`, override overrides in `ember`. While we in general
* want any regular rules in `typescript` to override any regular rules in
* `ember`, we want the overrides in `ember` to take effect.
*
* To achieve this, we include the overrides again.
*
* @see https://eslint.org/docs/user-guide/migrating-to-6.0.0#-overrides-in-an-extended-config-file-can-now-be-overridden-by-a-parent-config-file
*/
overrides: [
...require('@clark/eslint-config-typescript').overrides,
...require('@clark/eslint-config-ember').overrides,
{
/**
* The `Application` class has slots for `Resolver` and `Router` base
* classes.
*/
files: ['app.{js,ts}'],
rules: {
'@typescript-eslint/naming-convention': [
...require('@clark/eslint-config-typescript').rules[
'@typescript-eslint/naming-convention'
],
{
selector: 'property',
format: ['StrictPascalCase'],
filter: {
regex: 'Resolver|Router',
match: true,
},
},
],
},
},
],
};