| Conditions | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import re |
||
| 20 | def run(self, filename, file, eslint_config: str=""): |
||
| 21 | ''' |
||
| 22 | Checks the code with eslint. This will run eslint over each of the files |
||
| 23 | seperately. |
||
| 24 | |||
| 25 | :param eslint_config: The location of the .eslintrc config file. |
||
| 26 | ''' |
||
| 27 | if eslint_config: |
||
| 28 | self.arguments += (" --config " |
||
| 29 | + escape_path_argument(eslint_config)) |
||
| 30 | |||
| 31 | return self.lint(filename) |
||
| 32 |