forked from embroider-build/embroider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (46 loc) · 1.27 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
'use strict';
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 2017,
sourceType: 'module',
},
plugins: ['import', 'prettier', '@typescript-eslint'],
extends: ['prettier', 'prettier/@typescript-eslint'],
rules: {
eqeqeq: ['error', 'smart'],
'no-debugger': 'error',
'no-new-wrappers': 'error',
'no-redeclare': 'error',
'no-unused-labels': 'error',
'no-var': 'error',
'import/no-extraneous-dependencies': ['error', { devDependencies: ['packages/*/tests/**/*.ts'] }],
'@typescript-eslint/class-name-casing': 'error',
'@typescript-eslint/no-angle-bracket-type-assertion': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'prettier/prettier': 'error',
},
overrides: [
{
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',
},
},
],
};