eslint-plugin-matrix-org
Advanced tools
Comparing version 0.4.0 to 0.5.2
module.exports = { | ||
rules: { | ||
"require-copyright-header": require("./rules/copyright") | ||
}, | ||
configs: { | ||
@@ -3,0 +6,0 @@ "babel": require("./babel"), |
{ | ||
"name": "eslint-plugin-matrix-org", | ||
"version": "0.4.0", | ||
"version": "0.5.2", | ||
"description": "ESLint rules and configs used by Matrix.org projects", | ||
@@ -18,6 +18,3 @@ "keywords": [ | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"eslint-plugin-jsx-a11y": "^6.5.1" | ||
} | ||
"dependencies": {} | ||
} |
@@ -118,2 +118,18 @@ # eslint-plugin-matrix-org | ||
To require a copyright header: | ||
```js | ||
{ | ||
plugins: [ | ||
"matrix-org", | ||
], | ||
rules: [ | ||
"matrix-org/require-copyright-header": "error", | ||
// provide a header template as a string to insert on --fix | ||
// the current year can be inserted into the template with the placeholder `%%CURRENT_YEAR%%` | ||
"matrix-org/require-copyright-header": ["error", HEADER_TEMPLATE] | ||
] | ||
} | ||
``` | ||
This package does not hold any dependencies itself, as it causes conflicts the | ||
@@ -120,0 +136,0 @@ versions of the same dependencies downstream and also would imply installing the |
13605
0
10
285
151