Skip to content

Commit 9ad98f6

Browse files
committed
Update default linters config
1 parent 2d9f895 commit 9ad98f6

File tree

3 files changed

+35
-17
lines changed

3 files changed

+35
-17
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true,
6+
},
27
extends: [
38
'eslint:recommended',
49
'standard',
510
],
6-
env: {
7-
'browser': true,
8-
},
911
rules: {
10-
'comma-dangle': [
11-
'error', {
12-
'arrays': 'always-multiline',
13-
'objects': 'always-multiline',
14-
'imports': 'never',
15-
'exports': 'never',
16-
'functions': 'never',
17-
},
18-
],
12+
'arrow-parens': ['error', 'always'],
13+
'comma-dangle': ['error', 'always-multiline'],
1914
'no-cond-assign': ['error', 'except-parens'],
15+
'quote-props': ['warn', 'consistent-as-needed'],
16+
17+
'no-unused-expressions': 'off',
18+
// 'babel/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
2019
},
2120
}

.stylelintrc.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@ module.exports = {
55
rules: {
66
'at-rule-empty-line-before': [
77
'always', {
8-
'except': ['blockless-after-same-name-blockless', 'first-nested'],
9-
'ignore': ['after-comment'],
10-
'ignoreAtRules': ['apply', 'screen'],
8+
except: ['blockless-after-blockless', 'blockless-after-same-name-blockless', 'first-nested'],
9+
ignore: ['after-comment', 'inside-block'],
10+
ignoreAtRules: ['tailwind', 'apply', 'screen', 'font-face', 'nest'],
1111
},
1212
],
1313
'at-rule-no-unknown': [
1414
true, {
15-
'ignoreAtRules': ['tailwind', 'variants', 'responsive', 'apply', 'screen'],
15+
ignoreAtRules: ['tailwind', 'variants', 'responsive', 'apply', 'screen', 'layer'],
1616
},
1717
],
1818
'property-no-unknown': [
1919
true, {
20-
ignoreProperties: ['font-path']
20+
ignoreProperties: ['font-path'],
2121
},
2222
],
23+
'selector-pseudo-element-no-unknown': [
24+
true, {
25+
ignorePseudoElements: ['range-track', 'range-thumb', 'range-lower', 'range-upper'],
26+
},
27+
],
28+
'selector-nested-pattern': '^&',
2329
},
2430
}

0 commit comments

Comments
 (0)