Skip to content

Commit

Permalink
add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaps committed Nov 26, 2023
1 parent 070a74d commit af21c56
Show file tree
Hide file tree
Showing 10 changed files with 932 additions and 312 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"root": true,
"extends": ["standard"],
"rules": {
"indent": ["error", 4]
}
}
4 changes: 2 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
node-version: '20'
cache: 'yarn'
- run: yarn install
# --force should be removed if all the issues are fixed
- run: ./node_modules/.bin/grunt jshint --force
- run: npx webpack
- run: yarn run lint
continue-on-error: true # should be removed if all the issues are fixed
- run: yarn run test
- uses: codecov/codecov-action@v3
66 changes: 0 additions & 66 deletions .jshintrc

This file was deleted.

3 changes: 0 additions & 3 deletions .npmcheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ depcheck:
"grunt-postcss",
"grunt-nodemon",
"grunt-contrib-watch",
"grunt-contrib-uglify-es",
"grunt-contrib-jshint",
"grunt-contrib-concat",
"grunt-concurrent"
]
26 changes: 0 additions & 26 deletions grunt/jshint.js

This file was deleted.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@
"devDependencies": {
"awesomplete": "^1.1.5",
"dart-sass": "^1.25.0",
"eslint": "^8.54.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-promise": "^6.1.1",
"grunt": "1.6.1",
"grunt-concurrent": "3.0.0",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-nodemon": "^0.4.2",
"grunt-postcss": "0.9.0",
"grunt-run": "^0.8.1",
"grunt-sass": "3.1.0",
"jest": "^29.7.0",
"jshint-stylish": "2.2.1",
"load-grunt-config": "4.0.1",
"load-grunt-tasks": "5.1.0",
"octokit": "^3.1.2",
Expand All @@ -51,6 +54,8 @@
},
"scripts": {
"start": "node express.js",
"test": "jest"
"test": "jest",
"lint": "eslint --ignore-path .gitignore src tests",
"lint:fix": "eslint --fix --ignore-path .gitignore src tests"
}
}
6 changes: 6 additions & 0 deletions src/backend/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"env": {
"node": true,
"es2020": true
}
}
6 changes: 6 additions & 0 deletions src/frontend/js/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"env": {
"browser": true,
"es2020": true
}
}
8 changes: 8 additions & 0 deletions tests/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"env": {
"es2020": true,
"node": true,
"jest": true,
"jasmine": true
}
}
Loading

0 comments on commit af21c56

Please sign in to comment.