CyberChef/.eslintrc.json

117 lines
3.2 KiB
JSON
Raw Normal View History

2016-12-14 17:39:17 +01:00
{
2022-03-25 16:17:00 +01:00
"parser": "@babel/eslint-parser",
2016-12-14 17:39:17 +01:00
"parserOptions": {
"ecmaVersion": 2022,
2016-12-14 17:39:17 +01:00
"ecmaFeatures": {
"impliedStrict": true
},
"sourceType": "module",
"allowImportExportEverywhere": true
2016-12-14 17:39:17 +01:00
},
"env": {
"browser": true,
"es6": true,
"node": true
2016-12-14 17:39:17 +01:00
},
"extends": "eslint:recommended",
"rules": {
// enable additional rules
"no-eval": "error",
"no-implied-eval": "error",
"dot-notation": "error",
"eqeqeq": ["error", "smart"],
"no-caller": "error",
"no-extra-bind": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-return": "error",
"radix": "warn",
// modify rules from base configurations
"no-unused-vars": ["error", {
"args": "none",
2017-10-04 23:35:44 +02:00
"vars": "all"
2016-12-14 17:39:17 +01:00
}],
"no-empty": ["error", {
"allowEmptyCatch": true
}],
// disable rules from base configurations
"no-control-regex": "off",
2019-07-05 13:22:52 +02:00
"require-atomic-updates": "off",
"no-async-promise-executor": "off",
2016-12-14 17:39:17 +01:00
// stylistic conventions
"brace-style": ["error", "1tbs"],
2019-08-27 19:13:33 +02:00
"space-before-blocks": ["error", "always"],
2016-12-14 17:39:17 +01:00
"block-spacing": "error",
"array-bracket-spacing": "error",
"comma-spacing": "error",
2019-11-14 15:52:40 +01:00
"spaced-comment": ["error", "always", { "exceptions": ["/"] } ],
2016-12-14 17:39:17 +01:00
"comma-style": "error",
"computed-property-spacing": "error",
2017-02-09 16:09:33 +01:00
"no-trailing-spaces": "warn",
2016-12-14 17:39:17 +01:00
"eol-last": "error",
"func-call-spacing": "error",
2017-07-24 16:55:48 +02:00
"key-spacing": ["warn", {
"mode": "minimum"
}],
2016-12-14 17:39:17 +01:00
"indent": ["error", 4, {
2018-02-13 16:05:55 +01:00
"ignoreComments": true,
2016-12-14 17:39:17 +01:00
"ArrayExpression": "first",
"SwitchCase": 1
}],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double", {
"avoidEscape": true,
"allowTemplateLiterals": true
2016-12-14 17:39:17 +01:00
}],
"camelcase": ["error", {
"properties": "always"
}],
2016-12-14 17:39:17 +01:00
"semi": ["error", "always"],
"unicode-bom": "error",
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true
}
2017-02-09 16:09:33 +01:00
}],
"keyword-spacing": ["error", {
"before": true,
"after": true
}],
"no-multiple-empty-lines": ["warn", {
"max": 2,
"maxEOF": 1,
"maxBOF": 0
}],
"no-whitespace-before-property": "error",
"operator-linebreak": ["error", "after"],
2017-04-13 19:08:50 +02:00
"space-in-parens": "error",
"no-var": "error",
"prefer-const": "error"
2016-12-14 17:39:17 +01:00
},
"overrides": [
{
"files": "tests/**/*",
"rules": {
"no-unused-expressions": "off",
"no-console": "off"
}
}
],
2016-12-14 17:39:17 +01:00
"globals": {
"$": false,
"jQuery": false,
"log": false,
"app": false,
"COMPILE_TIME": false,
"COMPILE_MSG": false,
"PKG_VERSION": false
2016-12-14 17:39:17 +01:00
}
}