Skip to content

Commit e3f5fdf

Browse files
committed
UND-77 Adding the linting for scss and js
1 parent fc0148d commit e3f5fdf

File tree

5 files changed

+9075
-4414
lines changed

5 files changed

+9075
-4414
lines changed

.editorconfig

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

.eslintrc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"plugin:react/recommended",
8+
"airbnb",
9+
"plugin:mdx/recommended"
10+
],
11+
"parserOptions": {
12+
"ecmaFeatures": {
13+
"jsx": true
14+
},
15+
"ecmaVersion": 12,
16+
"sourceType": "module"
17+
},
18+
"plugins": [
19+
"react",
20+
"spellcheck"
21+
],
22+
"rules": {
23+
"spellcheck/spell-checker": ["warn"]
24+
},
25+
"settings": {
26+
"mdx/code-blocks": true
27+
},
28+
"overrides": [
29+
{
30+
"files": ["stories/**/*.jsx", "stories/**/*.mdx"]
31+
}
32+
]
33+
}

.stylelintrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"plugins": [
3+
"stylelint-scss"
4+
],
5+
"extends": [
6+
"stylelint-config-standard",
7+
"stylelint-config-sass-guidelines"
8+
],
9+
"defaultSeverity": "warning",
10+
"rules": {
11+
"max-nesting-depth": 2,
12+
"selector-max-compound-selectors": 3,
13+
"no-duplicate-selectors": null,
14+
"no-descending-specificity": null,
15+
"property-no-unknown": [
16+
true,
17+
{
18+
"ignoreProperties": ["/box-*/", "/flex-*/"]
19+
}
20+
]
21+
}
22+
}

0 commit comments

Comments
 (0)