Coding⏱️ 2 min read📅 2026-06-03

How to Fix: Parsing Error The Keyword import is Reserved (SublimeLinter-contrib-eslint)

ESLint error due to reserved keyword 'import' in .eslintrc.js file.

Quick Answer: Update the 'extends' configuration in .eslintrc.js to exclude the 'import' rule, or use a different linter configuration.

The error message 'Parsing Error The keyword import is reserved' in SublimeLinter-contrib-eslint indicates that the ESLint configuration file (.eslintrc.js) contains an invalid keyword. In this case, the issue lies with the 'keywords' field in your package.json file.

🔍 Why This Happens

  • The 'keywords' field in package.json is reserved and should not be used for custom keywords.

🔧 Proven Troubleshooting Steps

Method 1: Remove Keywords Field

  1. Step 1: Remove the 'keywords' field from your package.json file.

Method 2: Use 'name' Field

  1. Step 1: Replace the 'keywords' field with a custom keyword in your .eslintrc.js file.

✨ Wrapping Up

By removing or replacing the 'keywords' field, you should be able to resolve the ESLint parsing error and successfully configure your project.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions