-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (36 loc) · 1.44 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
/** @type {import('eslint').Linter.Config} */
module.exports = {
parserOptions: { project: 'tsconfig.json' },
settings: { 'import/resolver': 'typescript' },
extends: [
'airbnb-base',
'airbnb-typescript/base',
'plugin:node/recommended',
'plugin:eslint-comments/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
rules: {
'no-continue': 'off',
'no-await-in-loop': 'off',
'no-restricted-syntax': 'off',
'node/no-missing-import': ['error', { tryExtensions: ['.ts', '.js', '.json'] }],
'eslint-comments/no-unused-disable': 'error',
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true, args: 'all', argsIgnorePattern: '^_' }],
'node/no-unsupported-features/es-syntax': ['error', { ignores: ['modules', 'dynamicImport'] }],
'@typescript-eslint/no-non-null-assertion': 'off',
},
overrides: [
{ files: ['actions/**/*'], parserOptions: { project: 'actions/tsconfig.json' } },
{ files: ['{scripts,test}/**/*'], rules: { 'import/no-extraneous-dependencies': ['error', { devDependencies: true }] } },
{
files: ['test/**/*'],
extends: ['plugin:mocha/recommended', 'plugin:chai-expect/recommended', 'plugin:chai-friendly/recommended'],
rules: {
'node/no-missing-import': 'off',
'mocha/no-mocha-arrows': 'off',
'mocha/no-exclusive-tests': 'error',
},
},
],
};