Closed xuchao321 closed 6 years ago
Please send additional details: what's your setup, your dependencies versions, etc.
I have the same error..
@BenoitZugmeyer here is my info..
Sublime text 3.1.1 build 3176. I disabled all the packages I installed except for:
complete stack trace:
Error: eslint-plugin-html error: It seems that eslint is not loaded. If you think it is a bug, please file a report at https://github.com/BenoitZugmeyer/eslint-plugin-html/issues
at iterateESLintModules (C:\inetpub\wwwroot\contens\node_modules\eslint-plugin-html\src\index.js:67:11)
at Object.<anonymous> (C:\inetpub\wwwroot\contens\node_modules\eslint-plugin-html\src\index.js:28:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at C:\inetpub\wwwroot\contens\node_modules\eslint\lib\cli-engine.js:125:26
Here is my .eslint file
{
"globals": {
"require": true,
"module": true,
"define": true,
"jQuery": true,
"$": true,
"_": true,
"window": true,
"HashMap": true,
"CKEDITOR": true,
"Modernizr": true,
"google": true,
"gapi": true,
"moment": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["html"],
"extends": "eslint:recommended",
"rules": {
"comma-dangle": [2, "never"],
"curly": 2,
"no-console": 2,
"no-constant-condition": 2,
"no-control-regex": 2,
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-empty": 2,
"no-ex-assign": 2,
"no-extra-semi": 2,
"no-inner-declarations": 2,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-regex-spaces": 2,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"use-isnan": 2,
"valid-typeof": 2,
"no-fallthrough": 2,
"no-octal": 2,
"no-redeclare": 2,
"no-delete-var": 2,
"no-undef": 2,
"no-unused-vars": 2,
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-multiple-empty-lines": [2, { "max": 1 }],
"semi": [2, "always"],
"spaced-comment": [2, "always"]
},
"env": {
"browser": true,
"es6": true,
"node": true,
"jasmine": true
}
}
Update the plugin to the latest version (v4.0.4) and if you still have the error, please add all requested informations to this issue.
ESLint: eslint-plugin-html error: It seems that eslint is not loaded. If you think it is a bug, please file a report at https://github.com/BenoitZugmeyer/eslint-plugin-html/issues. Please see the 'ESLint' output channel for details.