-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.js
44 lines (44 loc) · 957 Bytes
/
.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
/** @type {import('eslint').Linter.BaseConfig} */
module.exports = {
extends: [
'@checkly/eslint-config',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/type-annotation-spacing': 2,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/ban-ts-comment': 0,
'no-console': 2,
'no-restricted-syntax': [
'error', {
selector: 'TSEnumDeclaration',
message: "Don't declare enums, use union types instead",
},
],
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
ignorePatterns: [
'node_modules',
'**/__checks__/**/*.spec.{js,ts,mjs}',
'**/syntax-error*',
'examples',
],
plugins: [
'@typescript-eslint',
],
overrides: [
{
files: [
'src/commands/*',
'src/reporters/*',
],
rules: {
'no-console': 0,
},
},
],
}