-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.eslintrc.js
54 lines (49 loc) · 1.21 KB
/
.eslintrc.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
54
'use strict';
const { configs } = require('@nullvoxpopuli/eslint-configs');
const config = configs.ember();
module.exports = {
...config,
overrides: [
...config.overrides,
{
files: ['**/*.gts'],
plugins: ['ember'],
parser: 'ember-eslint-parser',
globals: {
// used in testing as a shorthand for <output>
out: true,
},
},
{
files: ['**/*.gjs'],
plugins: ['ember'],
parser: 'ember-eslint-parser',
},
{
files: ['**/*.{ts,gts}'],
rules: {
/**
* This one is incorrectly parsed for now, because
* the rule doesn't understand decorators
*/
'@typescript-eslint/no-unused-vars': 'off',
/**
* any can be useful
*/
'@typescript-eslint/no-explicit-any': 'off',
/**
* Some compiler errors are not helpful
*/
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-ignore': 'allow-with-description',
'ts-nocheck': 'allow-with-description',
'ts-check': 'allow-with-description',
'ts-expect-error': 'allow-with-description',
},
],
},
},
],
};