Skip to content

Commit

Permalink
[mod] activate eslint rules: no-trailing-spaces indent
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
  • Loading branch information
return42 committed Nov 23, 2021
1 parent aebf8a7 commit ac46821
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions searx/static/themes/simple/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"ecmaVersion": 12
},
"rules": {
"indent": ["error", 2],
"no-trailing-spaces": 2
}
}
3 changes: 2 additions & 1 deletion searx/static/themes/simple/gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ module.exports = function(grunt) {
eslint: {
options: {
overrideConfigFile: '.eslintrc.json',
failOnError: false
failOnError: false,
fix: grunt.option('fix')
},
target: [
'svg4web.svgo.js',
Expand Down
1 change: 1 addition & 0 deletions searx/static/themes/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"all": "npm install && grunt",
"build": "grunt",
"eslint": "grunt eslint",
"eslint-fix": "grunt eslint --fix",
"watch": "grunt watch",
"webfont": "grunt webfont",
"clean": "rm -Rf node_modules package-lock.json ion.less",
Expand Down

0 comments on commit ac46821

Please sign in to comment.