[CSS] Remove no-restricted-syntax warning against `.registerRequiredCSS('style.css')` usage.
All usages have been fixed!
Bug: 1106746
Change-Id: I1a79c0a208b44040e152ac397b354671d6412874
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3341903
Auto-Submit: John Emau <[email protected]>
Reviewed-by: Tim Van der Lippe <[email protected]>
Commit-Queue: Tim Van der Lippe <[email protected]>
diff --git a/front_end/.eslintrc.js b/front_end/.eslintrc.js
index 5ccad72..703ca09 100644
--- a/front_end/.eslintrc.js
+++ b/front_end/.eslintrc.js
@@ -116,17 +116,7 @@
'format': ['camelCase'],
'leadingUnderscore': 'allow',
}
- ],
- 'no-restricted-syntax': [
- 'warn', {
- // Matches the common pattern of `.registerRequiredCSS('path\to\module-styles.css');`.
- 'selector':
- 'CallExpression[callee.property.name="registerRequiredCSS"][arguments.length=1]:has(Literal[value=/css$/])',
- 'message': 'Styles should be imported using `import styles from \'[file name].css(.legacy).js\';` and' +
- // Intentional double periods.. since trailing period is stripped from output.
- ' registered using `.registerCSSFiles([styles]);` or `.registerRequiredCSS(legacyStyles);` syntax..',
- }
- ],
+ ]
}
},
{