Skip to content

Commit

Permalink
Add dev documentation on how to disable the lint rule for specific pr…
Browse files Browse the repository at this point in the history
…operties
  • Loading branch information
cee-chen committed Aug 18, 2022
1 parent b4a1942 commit abaeaa4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/eslint-plugin/css_logical_properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ module.exports = {
'Prefer the CSS logical value for {{ property }} - @see src/global_styling/functions/logicals.ts',
},
fixable: 'code',
// NOTE: To disable this lint rule for a single line/property within a css`` block
// your code must use a comment inside a template literal, e.g.:
// css`
// color: red;
// height: 40px; ${/* eslint-disable-line local/css-logical-properties */ ''}
// `
},
create: function (context) {
return {
Expand Down

0 comments on commit abaeaa4

Please sign in to comment.