Passed
Push — master ( 9af5ff...b6034a )
by Andrii
02:55
created

postcss-d-ts-8/index.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 28
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
mnd 0
bc 0
fnc 1
dl 0
loc 28
rs 10
bpm 0
cpm 1
noi 1
c 0
b 0
f 0
1
module.exports = (opts = { }) => {
0 ignored issues
show
Unused Code introduced by
The parameter opts is not used and could be removed.

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.

Loading history...
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