Skip to content
New issue

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

Definition for rule '@shopify/polaris-prefer-sectioned-prop' was not found. #294

Open
furnaceX opened this issue Oct 15, 2021 · 1 comment

Comments

@furnaceX
Copy link

furnaceX commented Oct 15, 2021

I'm getting two warnings on all my js files when I am using plugin "@shopify/polaris"

Definition for rule '@shopify/polaris-prefer-sectioned-prop' was not found. eslint(@shopify/polaris-prefer-sectioned-prop)
Definition for rule '@shopify/polaris-no-bare-stack-item' was not found. eslint(@shopify/polaris-no-bare-stack-item)

Here is my .eslintrc.js config:

module.exports = {
    "env": {
        "browser": true,
        "es2021": true
    },
    "extends": [
        "eslint:recommended",
        "plugin:react/recommended",
        'plugin:@shopify/node',
        // 'plugin:@shopify/react',
        'plugin:@shopify/polaris',
        // 'plugin:@shopify/webpack',
        // 'plugin:@shopify/esnext',
    ],
    "parserOptions": {
        "ecmaFeatures": {
            "jsx": true
        },
        "ecmaVersion": 2020,
        "sourceType": "module"
    },
    "plugins": [
        "react"
    ],
    "rules": {
        'react/prop-types': "off",
    },
    globals: {
      'module': 'readonly',
      'require': 'readonly',
    },
};
@dahukish
Copy link
Contributor

Hey @furnaceX those rules are in our eslint plugin which is commented out.

https://github.com/Shopify/web-configs/blob/main/packages/eslint-plugin/README.md#usage

@dahukish dahukish added bug and removed bug labels Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants