ExtensionEngine / tailor

Content authoring platform
MIT License
31 stars 10 forks source link

Replace deprecated `babel-eslint` with `@babel/eslint-parser` #605

Closed MiroDojkic closed 4 years ago

MiroDojkic commented 4 years ago

babel-eslint is archived and replaced with eslint-parser which is now part of babel monorepo.

This fixes the issue thrown by lint script:

TypeError: Cannot read property 'range' of null
Occurred while linting /Users/miroslavdojkic/Projects/tailor/client/content-plugins/ComponentRegistry.js:40

babel.config.js is added with Poi's babel preset since it's required by eslint-parser.

⚠️ depends on changes in eslint-config#14