![]() ![]() If you already use a separate ESLint configuration and want to include eslint-config-next, ensure that it is extended last after other configurations. The plugin can be installed normally in your project without needing to run next lint: npm install -save-dev or yarn add -dev eliminates the risk of collisions or errors that can occur due to importing the same plugin or parser across multiple configurations. The rules in JSHint that I didn’t find an equivalent on ESLint were: es5/esnext: They’re not rules in ESLint but environment sets. Add next lint as a script to package.json: "scripts" : Next.js provides an integrated ESLint experience out of the box. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |