You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.
Error: The prop value with an expression type of TSAsExpression could not be resolved. Please file issue to get this fixed immediately. at Object.extract [as JSXExpressionContainer] (/Users/uu119619/git/redux-pluto/node_modules/jsx-ast-utils/lib/values/expressions/index.js:179:11) at getValue (/Users/uu119619/git/redux-pluto/node_modules/jsx-ast-utils/lib/values/index.js:48:27) at extractValue (/Users/uu119619/git/redux-pluto/node_modules/jsx-ast-utils/lib/getPropValue.js:24:12) at getPropValue (/Users/uu119619/git/redux-pluto/node_modules/jsx-ast-utils/lib/getPropValue.js:41:10) at /Users/uu119619/git/redux-pluto/node_modules/eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions.js:90:95 at Array.some (<anonymous>) at JSXOpeningElement (/Users/uu119619/git/redux-pluto/node_modules/eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions.js:89:52) at listeners.(anonymous function).forEach.listener (/Users/uu119619/git/redux-pluto/node_modules/eslint/lib/util/safe-emitter.js:45:58) at Array.forEach (<anonymous>) at Object.emit (/Users/uu119619/git/redux-pluto/node_modules/eslint/lib/util/safe-emitter.js:45:38)
事象
ルートディレクトリで
npm run ilnt:js
を実行すると一見lintが通っているように見えるが、どこかの.tsまたは.tsxファイルでセミコロンを外してみてからlintを実行すると、
warningを出すはずのprettierが効いていない。
eslintのコマンドライン引数に
--ext .js,.ts,.tsx
を追加するとtypescriptファイルに対してもlintが効くようになるはずだが、そうすると今度は以下のエラーが出る。Error: The prop value with an expression type of TSAsExpression could not be resolved. Please file issue to get this fixed immediately. at Object.extract [as JSXExpressionContainer] (/Users/uu119619/git/redux-pluto/node_modules/jsx-ast-utils/lib/values/expressions/index.js:179:11) at getValue (/Users/uu119619/git/redux-pluto/node_modules/jsx-ast-utils/lib/values/index.js:48:27) at extractValue (/Users/uu119619/git/redux-pluto/node_modules/jsx-ast-utils/lib/getPropValue.js:24:12) at getPropValue (/Users/uu119619/git/redux-pluto/node_modules/jsx-ast-utils/lib/getPropValue.js:41:10) at /Users/uu119619/git/redux-pluto/node_modules/eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions.js:90:95 at Array.some (<anonymous>) at JSXOpeningElement (/Users/uu119619/git/redux-pluto/node_modules/eslint-plugin-jsx-a11y/lib/rules/no-noninteractive-element-interactions.js:89:52) at listeners.(anonymous function).forEach.listener (/Users/uu119619/git/redux-pluto/node_modules/eslint/lib/util/safe-emitter.js:45:58) at Array.forEach (<anonymous>) at Object.emit (/Users/uu119619/git/redux-pluto/node_modules/eslint/lib/util/safe-emitter.js:45:38)
関連していそうなissue
jsx-eslint/jsx-ast-utils#42
The text was updated successfully, but these errors were encountered: