Skip to content

Commit 1ec6546

Browse files
committed
Update linters
1 parent 1d3d39c commit 1ec6546

File tree

5 files changed

+34
-5
lines changed

5 files changed

+34
-5
lines changed

.eslintrc.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"env": {
33
"browser": true,
44
"es6": true,
5-
"jest": true,
6-
"node": true
5+
"jest": true
76
},
87
"parser": "babel-eslint",
98
"parserOptions": {

.github/workflows/linters.yml

+8
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,11 @@ jobs:
6060
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json
6161
- name: ESLint Report
6262
run: npx eslint .
63+
nodechecker:
64+
name: node_modules checker
65+
runs-on: ubuntu-18.04
66+
steps:
67+
- uses: actions/checkout@v2
68+
- name: Check node_modules existence
69+
run: |
70+
if [ -d "node_modules/" ]; then echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again."; echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." && exit 1; fi

.hintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"meta-viewport",
1616
"no-inline-styles:error"
1717
]
18-
}
18+
}

.stylelintrc.json

+12-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@
22
"extends": ["stylelint-config-standard"],
33
"plugins": ["stylelint-scss", "stylelint-csstree-validator"],
44
"rules": {
5-
"at-rule-no-unknown": null,
6-
"scss/at-rule-no-unknown": true,
5+
"at-rule-no-unknown": [
6+
true,
7+
{
8+
"ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"]
9+
}
10+
],
11+
"scss/at-rule-no-unknown": [
12+
true,
13+
{
14+
"ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"]
15+
}
16+
],
717
"csstree/validator": true
818
},
919
"ignoreFiles": ["build/**", "dist/**", "**/reset*.css", "**/bootstrap*.css", "**/*.js", "**/*.jsx"]

package.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"devDependencies": {
3+
"babel-eslint": "^10.1.0",
4+
"eslint": "^7.32.0",
5+
"eslint-config-airbnb-base": "^14.2.1",
6+
"eslint-plugin-import": "^2.26.0",
7+
"stylelint": "^13.13.1",
8+
"stylelint-config-standard": "^21.0.0",
9+
"stylelint-csstree-validator": "^1.9.0",
10+
"stylelint-scss": "^3.21.0"
11+
}
12+
}

0 commit comments

Comments
 (0)