@@ -10,16 +10,16 @@ rulesDirPlugin.RULES_DIR = path.join(__dirname, '..', 'scripts', 'eslint_rules',
1010module . exports = {
1111 rules : {
1212 // L10n rules are only relevant in 'front_end'.
13- 'rulesdir/l10n_filename_matches ' : [
13+ 'rulesdir/l10n-filename-matches ' : [
1414 'error' , {
1515 rootFrontendDirectory : __dirname ,
1616 }
1717 ] ,
18- 'rulesdir/l10n_i18nString_call_only_with_uistrings ' : 'error' ,
19- 'rulesdir/l10n_no_i18nString_calls_module_instantiation ' : 'error' ,
20- 'rulesdir/l10n_no_locked_or_placeholder_only_phrase ' : 'error' ,
21- 'rulesdir/l10n_no_uistrings_export ' : 'error' ,
22- 'rulesdir/l10n_no_unused_message ' : 'error' ,
18+ 'rulesdir/l10n-i18nString-call-only-with-uistrings ' : 'error' ,
19+ 'rulesdir/l10n-no-i18nString-calls-module-instantiation ' : 'error' ,
20+ 'rulesdir/l10n-no-locked-or-placeholder-only-phrase ' : 'error' ,
21+ 'rulesdir/l10n-no-uistrings-export ' : 'error' ,
22+ 'rulesdir/l10n-no-unused-message ' : 'error' ,
2323 } ,
2424 overrides : [
2525 {
@@ -32,25 +32,25 @@ module.exports = {
3232 allowIIFEs :true ,
3333 } ,
3434 ] ,
35- 'rulesdir/no_importing_images_from_src ' : 'error' ,
36- 'rulesdir/enforce_bound_render_for_schedule_render ' : 'error' ,
37- 'rulesdir/enforce_custom_event_names ' : 'error' ,
38- 'rulesdir/set_data_type_reference ' : 'error' ,
39- 'rulesdir/no_bound_component_methods ' : 'error' ,
40- 'rulesdir/lit_no_style_interpolation ' : 'error' ,
41- 'rulesdir/ban_self_closing_custom_element_tagnames ' : 'error' ,
42- 'rulesdir/ban_style_tags_in_lit_html ' : 'error' ,
43- 'rulesdir/ban_a_tags_in_lit_html ' : 'error' ,
44- 'rulesdir/check_css_import ' : 'error' ,
35+ 'rulesdir/no-importing-images-from-src ' : 'error' ,
36+ 'rulesdir/enforce-bound-render-for-schedule-render ' : 'error' ,
37+ 'rulesdir/enforce-custom-event-names ' : 'error' ,
38+ 'rulesdir/set-data-type-reference ' : 'error' ,
39+ 'rulesdir/no-bound-component-methods ' : 'error' ,
40+ 'rulesdir/lit-no-style-interpolation ' : 'error' ,
41+ 'rulesdir/no-self-closing-custom-element-tagnames ' : 'error' ,
42+ 'rulesdir/no-style-tags-in-lit-html ' : 'error' ,
43+ 'rulesdir/no-a-tags-in-lit-html ' : 'error' ,
44+ 'rulesdir/check-css-import ' : 'error' ,
4545 'rulesdir/enforce-optional-properties-last' : 'error' ,
46- 'rulesdir/check_enumerated_histograms ' : 'error' ,
47- 'rulesdir/check_was_shown_methods ' : 'error' ,
48- 'rulesdir/static_custom_event_names ' : 'error' ,
49- 'rulesdir/lit_html_host_this ' : 'error' ,
50- 'rulesdir/lit_html_no_attribute_quotes ' : 'error' ,
51- 'rulesdir/lit_template_result_or_nothing ' : 'error' ,
52- 'rulesdir/inject_checkbox_styles ' : 'error' ,
53- 'rulesdir/jslog_context_list ' : 'error' ,
46+ 'rulesdir/check-enumerated-histograms ' : 'error' ,
47+ 'rulesdir/check-was-shown-methods ' : 'error' ,
48+ 'rulesdir/static-custom-event-names ' : 'error' ,
49+ 'rulesdir/lit-html-host-this ' : 'error' ,
50+ 'rulesdir/lit-html-no-attribute-quotes ' : 'error' ,
51+ 'rulesdir/lit-template-result-or-nothing ' : 'error' ,
52+ 'rulesdir/inject-checkbox-styles ' : 'error' ,
53+ 'rulesdir/jslog-context-list ' : 'error' ,
5454 }
5555 } ,
5656 {
@@ -74,21 +74,21 @@ module.exports = {
7474 {
7575 files : [ 'panels/**/components/*.ts' , 'ui/components/**/*.ts' , 'entrypoints/**/*.ts' ] ,
7676 rules : {
77- 'rulesdir/use_private_class_members ' : 'error' ,
77+ 'rulesdir/prefer-private-class-members ' : 'error' ,
7878 }
7979 } ,
8080 // TODO(crbug/1402569): Remove once LitElement is fully adopted.
8181 {
8282 files : [ 'panels/recorder/**/*.ts' , 'panels/protocol_monitor/**/*.ts' , 'ui/components/suggestion_input/*.ts' ] ,
8383 rules : {
8484 // TODO(crbug/1402569): Reenable once https://github.com/microsoft/TypeScript/issues/48885 is closed.
85- 'rulesdir/use_private_class_members ' : 'off' ,
85+ 'rulesdir/prefer-private-class-members ' : 'off' ,
8686 }
8787 } ,
8888 {
8989 files : [ 'generated/SupportedCSSProperties.js' ] ,
9090 rules : {
91- 'rulesdir/jslog_context_list ' : 'error' ,
91+ 'rulesdir/jslog-context-list ' : 'error' ,
9292 }
9393 }
9494 ]
0 commit comments