-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylelint.config.js
More file actions
37 lines (33 loc) · 898 Bytes
/
stylelint.config.js
File metadata and controls
37 lines (33 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import path from 'path';
// eslint-disable-next-line no-undef
const __filename = new URL(import.meta.url).pathname;
const __dirname = path.dirname(__filename);
const cssPaths = [
path.resolve(__dirname, './node_modules/@ifrc-go/ui/dist/index.css'),
path.resolve(__dirname, './app/index.css'),
];
/** @type {import('stylelint').Config} */
const config = {
extends: [
'stylelint-config-recommended',
'stylelint-config-concentric',
],
plugins: [
'stylelint-value-no-unknown-custom-properties',
],
rules: {
'csstools/value-no-unknown-custom-properties': [
true,
{
importFrom: cssPaths,
},
],
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['global'],
},
],
},
};
export default config;