main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
414 bytes
|
Rev | Line | |
---|
[d565449] | 1 | /**
|
---|
| 2 | * @fileoverview Common utils for directives.
|
---|
| 3 | *
|
---|
| 4 | * This file contains only shared items for directives.
|
---|
| 5 | * If you make a utility for rules, please see `../rules/utils/ast-utils.js`.
|
---|
| 6 | *
|
---|
| 7 | * @author gfyoung <https://github.com/gfyoung>
|
---|
| 8 | */
|
---|
| 9 | "use strict";
|
---|
| 10 |
|
---|
| 11 | const directivesPattern = /^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u;
|
---|
| 12 |
|
---|
| 13 | module.exports = {
|
---|
| 14 | directivesPattern
|
---|
| 15 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.