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

Fix up 'settings' section of '.eslintrc.js' #17

Closed
chris-pearce opened this issue Jan 9, 2018 · 0 comments
Closed

Fix up 'settings' section of '.eslintrc.js' #17

chris-pearce opened this issue Jan 9, 2018 · 0 comments
Labels

Comments

@chris-pearce
Copy link
Owner

chris-pearce commented Jan 9, 2018

Point it to the webpack config. Relevant code:

settings: {
    // This is needed to stop VS Code from reporting that it cannot find modules
    // https://github.com/benmosher/eslint-plugin-import/issues/799
    // https://github.com/AtomLinter/linter-eslint/issues/610
    'import/resolver': {
      node: {
        paths: [
          path.resolve(__dirname, './src'),
          path.resolve(__dirname, './src/assets'),
        ],
      },
    },
  },

import-js/eslint-plugin-import#799
AtomLinter/linter-eslint#610

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant