![]() Note that the AirBnB Style Guide package provides other plugins to enforce code style for React, JSX, and other Javascript libraries, but we don’t need these at this point. Your application will need to depend on it /usr/local/lib/node_modules/eslint-config-airbnb-base Your application will need to depend on it explicitly. Npm WARN peerDependencies The peer dependency included from eslint-config-airbnb-base will no > sudo npm install -g eslint-config-airbnb-base Use npm install -g eslint-config-airbnb-base (adding sudo on a mac): Now that we’ve installed ESLint along with the ability to import plugins, let’s install a plugin that configures ESLint to enforce the AirBnB style guide for “basic” ES6 code. Install AirBnB Javascript Style Guide configuration rules Your application will need to depend on it /usr/local/lib/node_modules/eslint-plugin-import Npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency Npm WARN peerDependencies The peer dependency - 3.x included from eslint-plugin-import will no > sudo npm install -g eslint-plugin-import (As before, on a Mac, this command must be preceded by sudo): We also need eslint-plugin-import, so run npm install -g eslint-plugin-import to install it. usr/local/bin/eslint -> /usr/local/lib/node_modules/eslint
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |