Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 28 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | module.exports = (opts = { }) => { |
||
|
|||
2 | |||
3 | // Work with options here |
||
4 | |||
5 | return { |
||
6 | postcssPlugin: 'postcss-d-ts', |
||
7 | /* |
||
8 | Root (root, postcss) { |
||
9 | // Transform CSS AST here |
||
10 | } |
||
11 | */ |
||
12 | |||
13 | /* |
||
14 | Declaration (decl, postcss) { |
||
15 | // The faster way to find Declaration node |
||
16 | } |
||
17 | */ |
||
18 | |||
19 | /* |
||
20 | Declaration: { |
||
21 | color: (decl, postcss) { |
||
22 | // The fastest way find Declaration node if you know property name |
||
23 | } |
||
24 | } |
||
25 | */ |
||
26 | } |
||
27 | } |
||
28 | module.exports.postcss = true |
||
29 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.