IGNF / road2

NodeJS routing server aggregating several popular routing engines (video presentation (french) : https://peertube.fr/w/75fwFoW2GP8tQSGLUXUpPP)
https://ignf.github.io/road2/
GNU General Public License v3.0
11 stars 3 forks source link

[lint] Update linter configuration #16

Open jmkerloch opened 1 year ago

jmkerloch commented 1 year ago

ESLint configuration is outdated. We need to update current configuration.

For example we could use:

{
    "env": {
        "commonjs": true,
        "es2021": true,
        "node": true
    },
    "extends": "eslint:recommended",
    "overrides": [
    ],
    "parserOptions": {
        "ecmaVersion": 2021,
        "sourceType": "script"
    },
    "parser": "espree",
    "rules": {
        "curly": "error",
        "eqeqeq": "error",        
        "no-console": "warn",
        "no-else-return": "error",
        "no-lonely-if": "error",
        "no-unneeded-ternary": "error",
        "no-unused-expressions": "error",
        "no-unused-vars": ["error", { "args": "none" }],
        "no-useless-concat": "error",
        "no-useless-return": "error",
        "no-with": "error",
        "prefer-promise-reject-errors": "error",
        "strict": "error"
    }
}