.eslintrc.js 712 B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. extends: 'erb',
  3. rules: {
  4. // A temporary hack related to IDE not resolving correct package.json
  5. 'import/no-extraneous-dependencies': 'off',
  6. },
  7. parserOptions: {
  8. ecmaVersion: 2020,
  9. sourceType: 'module',
  10. project: './tsconfig.json',
  11. tsconfigRootDir: __dirname,
  12. createDefaultProgram: true,
  13. },
  14. settings: {
  15. 'import/resolver': {
  16. // See https://github.com/benmosher/eslint-plugin-import/issues/1396#issuecomment-575727774 for line below
  17. node: {},
  18. webpack: {
  19. config: require.resolve('./.erb/configs/webpack.config.eslint.js'),
  20. },
  21. },
  22. 'import/parsers': {
  23. '@typescript-eslint/parser': ['.ts', '.tsx'],
  24. },
  25. },
  26. };