Skip to content

Commit

Permalink
Add Stylelint dependencies to ESLint config
Browse files Browse the repository at this point in the history
Until the generic starter package is created:

#165
  • Loading branch information
karlhorky committed Nov 20, 2022
1 parent eb35066 commit d1f01c8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@
"eslint-plugin-testing-library": "5.9.1",
"eslint-plugin-unicorn": "44.0.2",
"libpg-query": "13.3.0",
"postcss": "8.4.19",
"postcss-scss": "4.0.5",
"stylelint": "14.15.0",
"stylelint-config-prettier": "9.0.4",
"stylelint-config-recommended": "9.0.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-processor-styled-components": "1.10.0",
"typescript": "4.9.3"
},
"resolutions": {
Expand Down
15 changes: 15 additions & 0 deletions templates/stylelint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/** @type { import('stylelint').Config } */
const config = {
processors: ['stylelint-processor-styled-components'],
customSyntax: 'postcss-scss',
extends: [
'stylelint-config-recommended',
'stylelint-config-styled-components',
'stylelint-config-prettier',
],
rules: {
'no-descending-specificity': null,
},
};

module.exports = config;

0 comments on commit d1f01c8

Please sign in to comment.