1
トラビスCIにnpm run standard
を追加しました。私はこのエラーが発生しています。Travis CIのStandard.js "ルールの設定"カンマダングル "が無効です"
> standard
standard: Unexpected linter output:
Error: standard:
Configuration for rule "comma-dangle" is invalid:
Value "[object Object]" must be an enum value.
Referenced from: /home/travis/build/project/node_modules/standard/eslintrc.json
at validateRuleOptions (/home/travis/build/project/node_modules/eslint/lib/config/config-validator.js:116:15)
at /home/travis/build/project/node_modules/eslint/lib/config/config-validator.js:163:13
at Array.forEach (native)
at Object.validate (/home/travis/build/project/node_modules/eslint/lib/config/config-validator.js:162:35)
at load (/home/travis/build/project/node_modules/eslint/lib/config/config-file.js:518:19)
at /home/travis/build/project/node_modules/eslint/lib/config/config-file.js:386:36
at Array.reduceRight (native)
at applyExtends (/home/travis/build/project/node_modules/eslint/lib/config/config-file.js:363:28)
at Object.load (/home/travis/build/project/node_modules/eslint/lib/config/config-file.js:525:22)
at loadConfig (/home/travis/build/project/node_modules/eslint/lib/config.js:64:33)
If you think this is a bug in `standard`, open an issue: https://github.com/feross/standard/issues
プロジェクト自体には、このファイルにはあまり含まれていません。
https://github.com/feross/standard/blob/master/eslintrc.json
拡張設定ファイルのリンクを共有できますか?私は 'comma-dangle'ルールの定義を確認したいだけです – Gyandeep
これはこれかもしれませんか? https://github.com/feross/eslint-config-standard/blob/master/eslintrc.json#L35-L41 – ThomasReggi
ここに問題を追加しましたhttps://github.com/feross/standard/issues/895 – ThomasReggi