Compare commits

...

3 Commits

Author SHA1 Message Date
dependabot[bot] 1cf072fbb3
Merge 766823a64b into b07c0ae39f 2024-11-05 08:58:56 +01:00
Markus Heiser 766823a64b [fix] eslint: migrate JSON config to flat-config (.eslintrc.json -> eslint.config.js)
In ESLint v9.0.0, ``eslint.config.js`` is the new default configuration
format. The previous format, ``eslintrc``, is now deprecated and will not
automatically be searched for. [1]

This migration was done with the help of the "Configuration Migration Guide" [2]

[1] https://eslint.org/docs/latest/use/migrate-to-9.0.0#flat-config
[2] https://eslint.org/docs/latest/use/configure/migration-guide

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-05-15 18:47:17 +02:00
dependabot[bot] d58c40522b [upd] npm: Bump grunt-eslint in /searx/static/themes/simple
Bumps [grunt-eslint](https://github.com/sindresorhus/grunt-eslint) from 24.3.0 to 25.0.0.
- [Release notes](https://github.com/sindresorhus/grunt-eslint/releases)
- [Commits](https://github.com/sindresorhus/grunt-eslint/compare/v24.3.0...v25.0.0)

---
updated-dependencies:
- dependency-name: grunt-eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-15 18:00:11 +02:00
4 changed files with 28 additions and 30 deletions

View File

@ -1,28 +0,0 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"indent": ["error", 2],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-trailing-spaces": 2,
"space-before-function-paren": ["error", "always"],
"space-infix-ops": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"curly": ["error", "multi-line"],
"block-spacing": ["error", "always"],
"dot-location": ["error", "property"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"spaced-comment": ["error", "always", {
"line": { "markers": ["*package", "!", "/", ",", "="] },
"block": { "balanced": true, "markers": ["*package", "!", ",", ":", "::", "flow-include"], "exceptions": ["*"] }
}]
}
}

View File

@ -0,0 +1,26 @@
module.exports = [
{
"rules": {
"indent": ["error", 2],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-trailing-spaces": 2,
"space-before-function-paren": ["error", "always"],
"space-infix-ops": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"curly": ["error", "multi-line"],
"block-spacing": ["error", "always"],
"dot-location": ["error", "property"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"spaced-comment": [
"error", "always", {
"line": { "markers": ["*package", "!", "/", ",", "="] },
"block": { "balanced": true, "markers": ["*package", "!", ",", ":", "::", "flow-include"], "exceptions": ["*"] }
}
]
},
languageOptions: {
ecmaVersion: 12
}
}
];

View File

@ -35,7 +35,7 @@ module.exports = function (grunt) {
},
eslint: {
options: {
overrideConfigFile: '.eslintrc.json',
overrideConfigFile: 'eslint.config.js',
failOnError: true,
fix: grunt.option('fix')
},

View File

@ -8,7 +8,7 @@
"grunt-contrib-uglify": "~5.2.1",
"grunt-xmlmin": "~0.1.8",
"grunt-contrib-watch": "~1.1.0",
"grunt-eslint": "^24.0.0",
"grunt-eslint": "^25.0.0",
"grunt-stylelint": "^0.16.0",
"grunt-image": "^6.4.0",
"ionicons": "^7.1.0",