Skip to content

Commit 2c99190

Browse files
Implement Stylelint for CSS/SCSS linting and confirm ESLint for JS
- Added Stylelint configuration to enforce styling rules in CSS/SCSS. Signed-off-by: Timothy Asir Jeyasingh <[email protected]>
1 parent 3cdcb9d commit 2c99190

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ module.exports = {
6868
'default-case': 'off',
6969
'global-require': 'off',
7070
'implicit-arrow-linebreak': 'off',
71+
camelcase: ['error', { allow: ['pfV5', 'pfM'] }],
7172
'import/no-extraneous-dependencies': [
7273
'error',
7374
{

.stylelintrc.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
plugins: ['stylelint-scss'],
3+
rules: {
4+
'scss/at-function-pattern': '^pf-(v5|m)-',
5+
'scss/at-mixin-pattern': '^pf-(v5|m)-',
6+
'scss/dollar-variable-pattern': '^pf-(v5|m)-',
7+
// "selector-class-pattern": "^pf-(v5|m)-"
8+
},
9+
};

0 commit comments

Comments
 (0)