I have a problem with eslint, it gives me [Parsing Error The keyword import is reserve] this is only occur in sublime, in atom editor work well. I have eslint
.eslintrc.js
module.exports = { "extends": "airbnb", "plugins": [ "react" ] };
package.json
{ "name": "paint", "version": "0.0.0", "description": "paint on the browser", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "paint", "javascript" ], "author": "", "license": "ISC", "devDependencies": { "browserify": "^11.2.0", "eslint": "^2.2.0", "eslint-config-airbnb": "^2.1.1", "eslint-plugin-react": "^3.11.2", "gulp-babel": "^5.2.1", "gulp-clean": "^0.3.1", "gulp-stylus": "^2.2.0", "vinyl-source-stream": "^1.1.0" } }
Add this to the root of your .eslintrc.json
(formerly .eslintrc
)
"parser": "babel-eslint"
and make sure to run:
npm install babel-eslint --save-dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With