Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@next-theme/eslint-config

next-theme326MIT0.0.4

ESLint config for projects under theme NexT organization.

hexo, theme-next, eslint-config

readme

@next-theme/eslint-config

npm-image lic-image

ESLint config for projects under theme NexT organization.

Installation

size-image dm-image dt-image

There are two ways to install this configuration preset with ESLint: globally or locally (recommended).

Global Installation

npm install -g eslint
npm install -g @next-theme/eslint-config

Local Installation

npm install --save-dev eslint
npm install --save-dev @next-theme/eslint-config

Usage

If the file .eslintrc.json does not exists in the required repository, you will need to create it:

{
  "extends": "@next-theme",
  "root": true
}

Next, you can choose to install the ESLint plugin for your editor. For example, use Visual Studio Code with ESLint plugin installed.