|
| 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