ESLint plugins not working correctly

Hi all,

I'm trying to use some ESLint plugins in Pycharm 2017 Professional using React but it doesn't seem to be working correctly. The inspections simply aren't working. I've tried some blatantly bad practices but no highlighting is shown. For instance, I've tried verbatim this example here (https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md).  I've gone through the docs here on how to configure it https://www.npmjs.com/package/eslint-plugin-react and this is my .eslintrc.json file. I've also SS'd my ESLint plugin config here in Pycharm as well as my package.json.

Thanks for your help! I love PyCharm!

"devDependencies": {
"autoprefixer": "^6.3.3",
"babel-core": "^6.5.1",
"babel-loader": "^6.2.4",
"babel-plugin-transform-class-properties": "^6.23.0",
"babel-preset-es2015": "^6.24.0",
"babel-preset-react": "^6.5.0",
"css-loader": "^0.23.0",
"eslint": "^3.19.0",
"eslint-plugin-react": "^6.10.3",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.11.1",
"path": "^0.12.7",
"postcss-loader": "^0.8.1",
"precss": "^1.4.0",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"source-map-loader": "^0.1.5",
"style-loader": "^0.13.0",
"stylelint": "^7.10.1",
"stylelint-config-standard": "^16.0.0",
"webpack": "^1.12.13",
"webpack-dev-server": "^1.14.1"
},
"dependencies": {
"material-ui": "^0.17.1",
"react-dom": "^15.4.2",
"react-grid-layout": "^0.14.4",
"react-router": "^3.0.3",
"react-tap-event-plugin": "^2.0.1",
"whatwg-fetch": "^2.0.3"
}

 

{
"plugins": [
"react"
],
"settings": {
"react": {
"createClass": "createClass", // Regex for Component Factory to use, default to "createClass"
"pragma": "React", // Pragma to use, default to "React"
"version": "15.0" // React version, default to the latest React stable release
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["eslint:recommended", "plugin:react/recommended"]
}
0
1 comment

tried similar config, and inspections in IDE are the same as I can see when running ESLint in terminal. Can you provide a project I can use to recreate the issue?

0

Please sign in to leave a comment.