We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESLint: Error: Failed to load plugin 'flowtype' declared in '.eslint.js': Cannot find module 'eslint/use-at-you-own-risk'
'flowtype'
'.eslint.js'
'eslint/use-at-you-own-risk'
I used create-react-app, and error there.
create-react-app
.eslintrc.js:
module.exports = { root: true, env: { node: true, browser: true, }, parser: "@babel/eslint-parser", plugins: [ "flowtype" ], extends: [ "react-app", "react-app/jest" ], parserOptions: { parser: "@babel/eslint-parser" }, rules: { "flowtype/boolean-style": [ 2, "boolean" ], "flowtype/define-flow-type": 1, "flowtype/delimiter-dangle": [ 2, "never" ], "flowtype/generic-spacing": [ 2, "never" ], "flowtype/interface-id-match": [ 2, "^([A-Z][a-z0-9]+)+Type$" ], "flowtype/no-mixed": 2, "flowtype/no-primitive-constructor-types": 2, "flowtype/no-types-missing-file-annotation": 2, "flowtype/no-weak-types": 2, "flowtype/object-type-delimiter": [ 2, "comma" ], "flowtype/require-parameter-type": 2, "flowtype/require-readonly-react-props": 0, "flowtype/require-return-type": [ 2, "always", { "annotateUndefined": "never" } ], "flowtype/require-valid-file-annotation": 2, "flowtype/semi": [ 2, "always" ], "flowtype/space-after-type-colon": [ 2, "always" ], "flowtype/space-before-generic-bracket": [ 2, "never" ], "flowtype/space-before-type-colon": [ 2, "never" ], "flowtype/type-id-match": [ 2, "^([A-Z][a-z0-9]+)+Type$" ], "flowtype/union-intersection-spacing": [ 2, "always" ], "flowtype/use-flow-type": 1, "flowtype/valid-syntax": 1 }, settings: { "flowtype": { "onlyFilesWithFlowAnnotation": false } }, overrides: [{ files: ['**/__tests__/*.{j,t}s?(x)', '**/*.spec.{j,t}s?(x)'], env: { jest: true } }] };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ESLint: Error: Failed to load plugin
'flowtype'
declared in'.eslint.js'
: Cannot find module'eslint/use-at-you-own-risk'
I used
create-react-app
, and error there..eslintrc.js:
The text was updated successfully, but these errors were encountered: