Skip to content

Commit 4fc8930

Browse files
chore(deps): update dependency @zendeskgarden/eslint-config to v42 (#222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Zempel <[email protected]>
1 parent 05e351c commit 4fc8930

File tree

11 files changed

+4137
-901
lines changed

11 files changed

+4137
-901
lines changed

.eslintrc.json

-29
This file was deleted.

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

bin/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import { Command } from 'commander';
1111
import chalk from 'chalk';
1212
import cmd from '../dist/cmd/index.js';
13-
import { createRequire } from 'module';
13+
import { createRequire } from 'node:module';
1414
import dotenv from 'dotenv';
1515
import figlet from 'figlet';
1616
import github from '../dist/github/index.js';

eslint.config.mjs

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* Copyright Zendesk, Inc.
3+
*
4+
* Use of this source code is governed under the Apache License, Version 2.0
5+
* found at http://www.apache.org/licenses/LICENSE-2.0.
6+
*/
7+
8+
import config from '@zendeskgarden/eslint-config';
9+
import noticePlugin from '@zendeskgarden/eslint-config/plugins/notice.js';
10+
import prettierConfig from 'eslint-config-prettier';
11+
import typescriptPlugin from '@zendeskgarden/eslint-config/plugins/typescript.js';
12+
import typescriptTypeCheckedPlugin from '@zendeskgarden/eslint-config/plugins/typescript-type-checked.js';
13+
14+
export default [
15+
...config,
16+
noticePlugin,
17+
prettierConfig,
18+
{
19+
languageOptions: {
20+
parserOptions: {
21+
requireConfigFile: false
22+
}
23+
},
24+
rules: {
25+
'no-console': 'off'
26+
}
27+
},
28+
{
29+
files: ['src/**/*.ts'],
30+
...typescriptPlugin,
31+
...typescriptTypeCheckedPlugin,
32+
rules: {
33+
...typescriptPlugin.rules,
34+
...typescriptTypeCheckedPlugin.rules,
35+
'@typescript-eslint/no-unsafe-assignment': 'off',
36+
'@typescript-eslint/no-unsafe-call': 'off',
37+
'@typescript-eslint/no-unsafe-member-access': 'off',
38+
'@typescript-eslint/restrict-template-expressions': 'off',
39+
'@typescript-eslint/strict-boolean-expressions': 'off',
40+
'n/no-unsupported-features/node-builtins': ['error', { version: '>=21.0.0' }]
41+
}
42+
}
43+
];

0 commit comments

Comments
 (0)