|
| 1 | +import tseslint from 'typescript-eslint'; |
| 2 | +import globals from 'globals'; |
| 3 | +import oclif from 'eslint-config-oclif-typescript'; |
| 4 | + |
| 5 | +export default [ |
| 6 | + ...tseslint.configs.recommended, |
| 7 | + oclif, |
| 8 | + { |
| 9 | + languageOptions: { |
| 10 | + parser: tseslint.parser, |
| 11 | + parserOptions: { |
| 12 | + project: './tsconfig.json', |
| 13 | + }, |
| 14 | + sourceType: 'module', |
| 15 | + globals: { |
| 16 | + ...globals.node, |
| 17 | + }, |
| 18 | + }, |
| 19 | + plugins: { |
| 20 | + '@typescript-eslint': tseslint.plugin, |
| 21 | + }, |
| 22 | + rules: { |
| 23 | + '@typescript-eslint/no-unused-vars': [ |
| 24 | + 'error', |
| 25 | + { |
| 26 | + args: 'none', |
| 27 | + }, |
| 28 | + ], |
| 29 | + '@typescript-eslint/prefer-namespace-keyword': 'error', |
| 30 | + '@typescript-eslint/quotes': [ |
| 31 | + 'error', |
| 32 | + 'single', |
| 33 | + { |
| 34 | + avoidEscape: true, |
| 35 | + allowTemplateLiterals: true, |
| 36 | + }, |
| 37 | + ], |
| 38 | + semi: 'off', |
| 39 | + '@typescript-eslint/type-annotation-spacing': 'error', |
| 40 | + '@typescript-eslint/no-redeclare': 'off', |
| 41 | + eqeqeq: ['error', 'smart'], |
| 42 | + 'id-match': 'error', |
| 43 | + 'no-eval': 'error', |
| 44 | + 'no-var': 'error', |
| 45 | + quotes: 'off', |
| 46 | + indent: 'off', |
| 47 | + camelcase: 'off', |
| 48 | + 'comma-dangle': 'off', |
| 49 | + 'arrow-parens': 'off', |
| 50 | + 'operator-linebreak': 'off', |
| 51 | + 'object-curly-spacing': 'off', |
| 52 | + 'node/no-missing-import': 'off', |
| 53 | + 'padding-line-between-statements': 'off', |
| 54 | + '@typescript-eslint/ban-ts-ignore': 'off', |
| 55 | + 'unicorn/no-abusive-eslint-disable': 'off', |
| 56 | + 'unicorn/consistent-function-scoping': 'off', |
| 57 | + '@typescript-eslint/no-use-before-define': 'off', |
| 58 | + }, |
| 59 | + }, |
| 60 | +]; |
0 commit comments