Skip to content

Commit

Permalink
Revert "warn on child selectors (#297)"
Browse files Browse the repository at this point in the history
This reverts commit 894851e.
  • Loading branch information
matt-gadd committed Jul 15, 2019
1 parent 894851e commit a588ed4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,18 +406,14 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
config: {
rules: {
'selector-max-type': [0, { ignoreTypes: '.' }],
'selector-max-universal': [0],
'selector-pseudo-class-blacklist': ['/-child$/']
'selector-max-universal': [0]
}
},
emitErrors: false,
formatter: (results: any) => {
return stylelint.formatters
.string(results)
.replace(
/selector-max-type|selector-max-universal|selector-pseudo-class-blacklist/g,
'css-modules'
)
.replace(/selector-max-type|selector-max-universal/g, 'css-modules')
.replace(
/to have no more than (\d*) type selectors/g,
'to not contain element selectors due to unsafe isolation'
Expand Down

0 comments on commit a588ed4

Please sign in to comment.