generated from canisminor1990/canisminor-template
-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.ts
36 lines (36 loc) · 1.06 KB
/
index.ts
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
export default {
$schema: 'https://json.schemastore.org/stylelintrc',
extends: [
require.resolve('@umijs/lint/dist/config/stylelint'),
'stylelint-config-recommended',
'stylelint-config-clean-order',
],
overrides: [
{
customSyntax: 'postcss-less',
files: ['*.less', '*.css'],
plugins: ['stylelint-less'],
rules: {
'at-rule-no-unknown': null,
'color-no-invalid-hex': true,
'function-no-unknown': null,
'less/color-no-invalid-hex': true,
},
},
{
customSyntax: 'postcss-styled-syntax',
files: ['*.js', '*.jsx', '*.ts', '*.tsx'],
rules: {
'no-empty-source': null,
'no-invalid-double-slash-comments': null,
'no-missing-end-of-source-newline': null,
'property-no-vendor-prefix': true,
'value-no-vendor-prefix': [true, { ignoreValues: ['box'] }],
},
},
],
plugins: ['stylelint-order', 'stylelint-use-logical-spec'],
rules: {
'liberty/use-logical-spec': [true, { except: ['float', /^((min|max)-)?(height|width)$/i] }],
},
};