|
| 1 | +import tseslint from 'typescript-eslint'; |
| 2 | +import globals from 'globals'; |
| 3 | +import oclif from 'eslint-config-oclif'; |
| 4 | +import oclifTypescript from 'eslint-config-oclif-typescript'; |
| 5 | + |
| 6 | +export default [ |
| 7 | + ...tseslint.configs.recommended, |
| 8 | + |
| 9 | + oclif, |
| 10 | + |
| 11 | + oclifTypescript, |
| 12 | + |
| 13 | + { |
| 14 | + ignores: [ |
| 15 | + 'lib/**/*', |
| 16 | + ], |
| 17 | + }, |
| 18 | + |
| 19 | + { |
| 20 | + languageOptions: { |
| 21 | + parser: tseslint.parser, |
| 22 | + parserOptions: { |
| 23 | + ecmaVersion: 2020, |
| 24 | + sourceType: 'module', |
| 25 | + }, |
| 26 | + globals: { |
| 27 | + ...globals.node, |
| 28 | + }, |
| 29 | + }, |
| 30 | + |
| 31 | + plugins: { |
| 32 | + '@typescript-eslint': tseslint.plugin, |
| 33 | + }, |
| 34 | + |
| 35 | + rules: { |
| 36 | + 'unicorn/prefer-module': 'off', |
| 37 | + '@typescript-eslint/no-require-imports': 'off', |
| 38 | + 'unicorn/no-array-for-each': 'off', |
| 39 | + camelcase: 'off', |
| 40 | + '@typescript-eslint/no-unused-vars': 'error', |
| 41 | + quotes: ['error', 'single', { avoidEscape: true }], |
| 42 | + semi: ['error', 'never'], |
| 43 | + 'unicorn/import-style': 'off', |
| 44 | + 'unicorn/prefer-node-protocol': 'off', |
| 45 | + 'unicorn/consistent-function-scoping': 'off', |
| 46 | + '@typescript-eslint/ban-ts-comment': 'off', |
| 47 | + 'object-curly-spacing': ['error', 'never'], |
| 48 | + 'node/no-missing-import': 'off', |
| 49 | + }, |
| 50 | + }, |
| 51 | +]; |
0 commit comments