TypeError: this.cliEngine is not a constructor
See original GitHub issueTell us about your environment
- **ESLint Version: v6.0.1
- **Node Version: v10.13.0
- **npm Version: v6.4.1
What parser (default, Babel-ESLint, etc.) are you using?
Please show your full configuration: module.exports = { parser: ‘@typescript-eslint/parser’, extends: [ ‘airbnb’, ‘prettier’, ‘prettier/@typescript-eslint’, ‘plugin:compat/recommended’, ‘plugin:@typescript-eslint/recommended’, ], plugins: [‘@typescript-eslint’], env: { browser: true, node: true, es6: true, mocha: true, jest: true, jasmine: true, }, globals: { APP_TYPE: true, ALIYUN_ENV: true, WODAX_APP_NAME: true, page: true, }, rules: { /// for base 配置 ‘linebreak-style’: 0, ‘no-unused-vars’: 0, ‘no-param-reassign’: 0, ‘no-underscore-dangle’: 0,
/// for compat
'compat/compat': 0,
/// for import 配置
'import/no-cycle': 0,
'import/no-unresolved': [2, { ignore: ['^@/', '^umi/', '^./', '^../', '^.', '^..'] }],
'import/no-extraneous-dependencies': [
'warn',
{
optionalDependencies: true,
devDependencies: [
'**/tests/**(.js,.jsx,.ts,.tsx)',
'**/e2e/**(.js,.jsx,.ts,.tsx)',
'/mock/**/**(.js,.jsx,.ts,.tsx)',
'**/**.test.(.js,.jsx,.ts,.tsx)',
],
},
],
/// for jsx-a11y 配置
'jsx-a11y/no-noninteractive-element-interactions': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/anchor-is-valid': 0,
"jsx-a11y/label-has-for": [ 2, { /// for < esLint@^6.1.0
"components": [ "Label" ],
"required": {
"every": [ "nesting", "id" ]
},
"allowChildren": false
}],
'jsx-a11y/label-has-associated-control': [ /// for esLint@^6.1.0
2,
{
labelComponents: ['CustomInputLabel'],
labelAttributes: ['label'],
controlComponents: ['CustomInput'],
depth: 3,
},
],
/// for react/jsx 配置
'react/jsx-filename-extension': [
1,
{ extensions: ['.js', '.jsx', '.tsx'] },
],
'react/jsx-wrap-multilines': 0,
'react/jsx-boolean-value': 0,
'react/prop-types': 0,
'react/forbid-prop-types': 0,
'react/jsx-no-bind': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-tag-spacing': [1, { beforeSelfClosing: 'always' }],
// ==> @typescript-eslint 配置
'@typescript-eslint/indent': 0,
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/explicit-member-accessibility': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/camelcase': 0,
}, settings: { polyfills: [‘fetch’, ‘promises’, ‘url’, ‘object-assign’], }, };
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
What actually happened? Please include the actual, raw output from ESLint.
Are you willing to submit a pull request to fix this bug?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:14 (4 by maintainers)
Top GitHub Comments
Update to 2019.1.3 solves this issue. https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004195120-TypeError-this-cliEngine-is-not-a-constructor
That is, the problem is from JetBrain’s ESLint plugin, not ESLint itself.