forked from embroider-build/embroider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
61 lines (58 loc) · 1.43 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
55
56
57
58
59
60
61
'use strict';
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
plugins: ['import', 'prettier', '@typescript-eslint'],
extends: ['prettier'],
rules: {
eqeqeq: ['error', 'smart'],
'no-debugger': 'error',
'no-new-wrappers': 'error',
'no-unused-labels': 'error',
'no-var': 'error',
'import/no-extraneous-dependencies': ['error', { devDependencies: ['packages/*/tests/**/*.ts'] }],
'prettier/prettier': 'error',
},
overrides: [
{
files: ['**/*.ts'],
parserOptions: {
project: './tsconfig.json',
},
rules: {
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'typeLike',
format: ['PascalCase'],
},
],
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
},
{
files: ['packages/**/*.ts'],
rules: {
'@typescript-eslint/no-require-imports': 'error',
},
},
{
files: ['test-packages/**/*.[jt]s'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['types/**/*.ts'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
],
};