const prettierConf = require('./prettier.config.js');

module.exports = {
  extends: ['airbnb', 'prettier'],
  rules: {
    'prettier/prettier': ['error', prettierConf],

    // But we want the following
    'no-multi-spaces': ['error', { exceptions: { ImportDeclaration: true } }],
    'no-param-reassign': ['error', { props: false }],
    'no-unused-vars': ['error', { args: 'none' }],
    'prefer-destructuring': 0,
    'import/no-extraneous-dependencies': 0, // Needed for tests
    // 'no-mixed-operators': 'error', // Wish we can put it back with prettier

    // Not for us
    'jsx-a11y/label-has-for': 0,
    'no-console': 0,
    'no-plusplus': 0,
    'import/no-named-as-default': 0,
    'import/no-named-as-default-member': 0,

    // Introduced with new eslint
    // and no time to fix them...
    // [...]
    'linebreak-style': 0,
  },
  plugins: ['prettier'],
  globals: {
    __BASE_PATH__: false,
    VRFrameData: true,
  },
  settings: {
    'import/resolver': {
      webpack: {
        config: {
          resolve: {
            alias: {
              'vtk.js': __dirname,
            },
          },
        },
      },
    },
  },
  env: {
    es6: true,
    browser: true,
  },
  ignorePatterns: [
    // ignore old Actor example
    '**/example_/*.js',
  ],
};

@@ -1,12 +1,42 @@
+const path = require('path');%0A
 const pretti
@@ -1100,27 +1100,690 @@
     
-'vtk.js': __dirname
+// Since vtk.js examples are written as if the vtk.js package is a dependency,%0A              // we need to resolve example imports as if they were referencing vtk.js/Sources.%0A              // the Examples/Utilities hack allows for imports from those folders, since our%0A              // last alias overrides vtk.js/* paths to point to vtk.js/Sources/*.%0A              'vtk.js/Data': path.resolve(__dirname, 'Data'),%0A              'vtk.js/Examples': path.resolve(__dirname, 'Examples'),%0A              'vtk.js/Utilities': path.resolve(__dirname, 'Utilities'),%0A              'vtk.js/Sources': path.resolve(__dirname, 'Sources'),%0A              'vtk.js': path.resolve(__dirname, 'Sources')
 ,%0A  

Update aliases