forked from josemarluedke/ember-focus-trap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
52 lines (50 loc) · 1.36 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
const { join } = require('path');
module.exports = {
root: true,
parserOptions: {
project: join(__dirname, './tsconfig.eslint.json')
},
extends: ['@underline/eslint-config-ember-typescript'],
rules: {
'@typescript-eslint/no-empty-interface': 'off',
'ember/no-empty-glimmer-component-classes': 'off',
'@typescript-eslint/ban-types': ['off', { types: { object: null } }]
},
overrides: [
{
files: ['{packages,examples}/**/tests/**/*.ts'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
}
},
// node files
{
files: [
'addon-main.js',
'.babelrc.js',
'babel.config.js',
'.docfy-config.js',
'.ember-cli.js',
'.eslintrc.js',
'.prettierrc.js',
'.template-lintrc.js',
'config/**/*.js',
'ember-addon-main.js',
'ember-cli-build.js',
'postcss.config.js',
'tailwind.config.js',
'testem.js',
'webpack.config.js',
'scripts/**/*.js',
'packages/*/config/**/*.js',
'packages/*/tests/dummy/config/**/*.js',
'packages/*/config/**/*.js',
'site/config/**/*.js',
'site/tests/dummy/config/**/*.js'
],
extends: ['@underline/eslint-config-node'],
rules: {}
}
]
};