Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1001 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 1001 Bytes

eslint-config-stylelint

NPM version Build Status

Stylelint org's shareable config for ESLint.

For consistent JavaScript across Stylelint's repos.

Installation

$ npm install eslint-config-stylelint --save-dev

Usage

Add this to your ESLint config:

import stylelintConfig from "eslint-config-stylelint";

export default [...stylelintConfig];

For Jest

Install the plugin additionally:

$ npm install eslint-plugin-jest --save-dev

Then, update your config:

import stylelintConfig from "eslint-config-stylelint";
import stylelintJestConfig from "eslint-config-stylelint/jest";

export default [...stylelintConfig, ...stylelintJestConfig];