Skip to content

Commit 356f421

Browse files
Update configuration files
1 parent f64d5db commit 356f421

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.eslintrc.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// This is a reusable configuration file copied from https://github.com/actions/reusable-workflows/tree/main/reusable-configurations. Please don't make changes to this file as it's the subject of an automatic update.
2+
module.exports = {
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:eslint-plugin-jest/recommended',
7+
'eslint-config-prettier'
8+
],
9+
parser: '@typescript-eslint/parser',
10+
plugins: ['@typescript-eslint', 'eslint-plugin-node', 'eslint-plugin-jest'],
11+
rules: {
12+
'@typescript-eslint/no-require-imports': 'error',
13+
'@typescript-eslint/no-non-null-assertion': 'off',
14+
'@typescript-eslint/no-explicit-any': 'off',
15+
'@typescript-eslint/no-empty-function': 'off',
16+
'@typescript-eslint/ban-ts-comment': [
17+
'error',
18+
{
19+
'ts-ignore': 'allow-with-description'
20+
}
21+
],
22+
'no-console': 'error',
23+
'yoda': 'error',
24+
'prefer-const': [
25+
'error',
26+
{
27+
destructuring: 'all'
28+
}
29+
],
30+
'no-control-regex': 'off',
31+
'no-constant-condition': ['error', {checkLoops: false}],
32+
'node/no-extraneous-import': 'error'
33+
},
34+
overrides: [
35+
{
36+
files: ['**/*{test,spec}.ts'],
37+
rules: {
38+
'@typescript-eslint/no-unused-vars': 'off',
39+
'jest/no-standalone-expect': 'off',
40+
'jest/no-conditional-expect': 'off',
41+
'no-console': 'off',
42+
43+
}
44+
}
45+
],
46+
env: {
47+
node: true,
48+
es6: true,
49+
'jest/globals': true
50+
}
51+
};

0 commit comments

Comments
 (0)