Comments (8)
A workaround I found was to use the inherited config from eslint-config-airbnb without eslint-plugin-jsx-a11y:
"extends": [
"eslint-config-airbnb-base",
"eslint-config-airbnb-base/rules/strict",
"eslint-config-airbnb/rules/react"
]
HTH
from jsx-ast-utils.
The airbnb guide doesn’t allow pre-stage-3 proposals like the bind operator.
Duplicate of #33; waiting on https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/327
from jsx-ast-utils.
I'm seeing the exact same issue as @thibautvs, @ljharb. The issue you pointed to is closed now. Here's my dependencies:
"dependencies": {
"animejs": "^2.2.0",
"antd": "^3.1.6",
"dva": "^2.1.0",
"dva-loading": "^1.0.4",
"jsonwebtoken": "^8.1.1",
"moment": "^2.21.0",
"nprogress": "^0.2.0",
"path-to-regexp": "^2.2.0",
"querystring": "^0.2.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-helmet": "^5.2.0",
"react-inlinesvg": "^0.7.5"
},
"devDependencies": {
"babel-eslint": "^8.2.2",
"babel-jest": "^22.4.1",
"babel-plugin-dva-hmr": "^0.4.0",
"babel-plugin-import": "^1.6.6",
"babel-plugin-module-resolver": "^3.1.0",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-plugin-transform-runtime": "^6.23.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.14.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-umi": "^0.1.1",
"eslint-plugin-flowtype": "^2.34.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.1.0",
"history": "^4.7.2",
"husky": "^0.12.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^22.4.2",
"react-test-renderer": "^16.2.0",
"redbox-react": "^1.4.3",
"roadhog": "^2.0.0"
},
from jsx-ast-utils.
and what’s your eslint config?
from jsx-ast-utils.
Here ya go:
"extends": "airbnb",
"rules": {
"semi": [2, "never"],
"no-console": 0,
"comma-dangle": [2, "always-multiline"],
"max-len": [1, 100, 2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreStrings": true
}],
"react/jsx-first-prop-new-line": 0,
"react/jsx-filename-extension": 0,
"space-before-function-paren": [2, "always"],
"no-unused-expressions": [0, {
"allowShortCircuit": true,
"allowTernary": true
}],
"arrow-body-style": [0, "never"],
"func-names": 0,
"prefer-const": 0,
"no-extend-native": 0,
"no-param-reassign": 0,
"no-restricted-syntax": 0,
"no-eval": 0,
"no-continue": 0,
"react/jsx-no-bind": 0,
"no-unused-vars": [2, { "ignoreRestSiblings": true }],
"no-underscore-dangle": 0,
"global-require": 0,
"import/no-unresolved": 0,
"import/extensions": 0,
"jsx-a11y/href-no-hash": 0,
"react/no-array-index-key": 0,
"react/require-default-props": 0,
"react/forbid-prop-types": 0,
"react/no-string-refs": 0,
"react/no-find-dom-node": 0,
"react/jsx-max-props-per-line": [2, { "when": "multiline" }],
"react/prefer-stateless-function": 0,
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"react/no-danger": 0,
"jsx-a11y/no-static-element-interactions": 0,
"object-curly-newline": 0,
"no-debugger": 1
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"settings": {
"import/resolver": "node"
},
"globals": {
"window": true
}
}
from jsx-ast-utils.
Try updating eslint-plugin-import (and all the eslint deps) to the latest.
from jsx-ast-utils.
@thibautvs , Fixed in version v2.2.1. This will log an error in the console, but it will no longer throw.
from jsx-ast-utils.
This should already have been fixed by #43.
from jsx-ast-utils.
Related Issues (20)
- The prop value with an expression type of JSXFragment could not be resolved HOT 12
- The prop value with an expression type of `MetaProperty` could not be resolved HOT 20
- Invitation to move to official `eslint-community` org HOT 10
- The prop value with an expression type of PrivateIdentifier could not be resolved HOT 4
- The prop value with an expression type of ChainExpression could not be resolved. Please file issue to get this fixed immediately. HOT 1
- The prop value with an expression type of TSNonNullExpression could not be resolved HOT 12
- The prop value with an expression type of JSXEmptyExpression could not be resolved. HOT 7
- The prop value with an expression type of TSNonNullExpression could not be resolved.
- TSNonNullExpression could not be resolved HOT 5
- The prop value with an expression type of JSXEmptyExpression could not be resolved HOT 5
- The prop value with an expression type of AwaitExpression could not be resolved. HOT 6
- The prop value with an expression type of TSSatisfiesExpression could not be resolved. HOT 5
- Nested fragment within prop value errors out
- The prop value with an expression type of MetaProperty could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately. HOT 2
- MetaProperty HOT 1
- The prop value with an expression type of MetaProperty could not be resolved HOT 2
- ESLint error message encountered on MetaProperty HOT 7
- JSXEmptyExpression could not be resolved HOT 2
- Error with AstroShorthandAttribute HOT 4
- jsx-ast-utils shouldn't bundle redundant files for end users HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsx-ast-utils.