mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
delete root link
This commit is contained in:
+22
-23
@@ -11,29 +11,28 @@ See also [ClojureWerkz’s recommendations] for open source projects.
|
||||
|
||||
**Table of Contents**
|
||||
|
||||
* [PostCSS Plugin Guidelines](#postcss-plugin-guidelines)
|
||||
* [API](#1-api)
|
||||
* [1.1 Clear name with `postcss-` prefix](#11-clear-name-with-postcss--prefix)
|
||||
* [1.2. Do one thing, and do it well](#12-do-one-thing-and-do-it-well)
|
||||
* [1.3. Do not use mixins](#13-do-not-use-mixins)
|
||||
* [1.4. Keep `postcss` to `peerDependencies`](#14-keep-postcss-to-peerdependencies)
|
||||
* [1.5. Set `plugin.postcssPlugin` with plugin name](#15-set-pluginpostcssplugin-with-plugin-name)
|
||||
* [Processing](#2-processing)
|
||||
* [2.1. Plugin must be tested](#21-plugin-must-be-tested)
|
||||
* [2.2. Use asynchronous methods whenever possible](#22-use-asynchronous-methods-whenever-possible)
|
||||
* [2.3. Use fast node’s scanning](#23-use-fast-nodes-scanning)
|
||||
* [2.4. Set `node.source` for new nodes](#24-set-nodesource-for-new-nodes)
|
||||
* [2.5. Use only the public PostCSS API](#25-use-only-the-public-postcss-api)
|
||||
* [Dependencies](#3-dependencies)
|
||||
* [3.1. Use messages to specify dependencies](#31-use-messages-to-specify-dependencies)
|
||||
* [Errors](#4-errors)
|
||||
* [4.1. Use `node.error` on CSS relevant errors](#41-use-nodeerror-on-css-relevant-errors)
|
||||
* [4.2. Use `result.warn` for warnings](#42-use-resultwarn-for-warnings)
|
||||
* [Documentation](#5-documentation)
|
||||
* [5.1. Document your plugin in English](#51-document-your-plugin-in-english)
|
||||
* [5.2. Include input and output examples](#52-include-input-and-output-examples)
|
||||
* [5.3. Maintain a changelog](#53-maintain-a-changelog)
|
||||
* [5.4. Include `postcss-plugin` keyword in `package.json`](#54-include-postcss-plugin-keyword-in-packagejson)
|
||||
* [API](#1-api)
|
||||
* [1.1 Clear name with `postcss-` prefix](#11-clear-name-with-postcss--prefix)
|
||||
* [1.2. Do one thing, and do it well](#12-do-one-thing-and-do-it-well)
|
||||
* [1.3. Do not use mixins](#13-do-not-use-mixins)
|
||||
* [1.4. Keep `postcss` to `peerDependencies`](#14-keep-postcss-to-peerdependencies)
|
||||
* [1.5. Set `plugin.postcssPlugin` with plugin name](#15-set-pluginpostcssplugin-with-plugin-name)
|
||||
* [Processing](#2-processing)
|
||||
* [2.1. Plugin must be tested](#21-plugin-must-be-tested)
|
||||
* [2.2. Use asynchronous methods whenever possible](#22-use-asynchronous-methods-whenever-possible)
|
||||
* [2.3. Use fast node’s scanning](#23-use-fast-nodes-scanning)
|
||||
* [2.4. Set `node.source` for new nodes](#24-set-nodesource-for-new-nodes)
|
||||
* [2.5. Use only the public PostCSS API](#25-use-only-the-public-postcss-api)
|
||||
* [Dependencies](#3-dependencies)
|
||||
* [3.1. Use messages to specify dependencies](#31-use-messages-to-specify-dependencies)
|
||||
* [Errors](#4-errors)
|
||||
* [4.1. Use `node.error` on CSS relevant errors](#41-use-nodeerror-on-css-relevant-errors)
|
||||
* [4.2. Use `result.warn` for warnings](#42-use-resultwarn-for-warnings)
|
||||
* [Documentation](#5-documentation)
|
||||
* [5.1. Document your plugin in English](#51-document-your-plugin-in-english)
|
||||
* [5.2. Include input and output examples](#52-include-input-and-output-examples)
|
||||
* [5.3. Maintain a changelog](#53-maintain-a-changelog)
|
||||
* [5.4. Include `postcss-plugin` keyword in `package.json`](#54-include-postcss-plugin-keyword-in-packagejson)
|
||||
|
||||
## 1. API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user