2016-12-14 10:39:17 -06:00
|
|
|
{
|
2022-03-25 10:17:00 -05:00
|
|
|
"parser": "@babel/eslint-parser",
|
2016-12-14 10:39:17 -06:00
|
|
|
"parserOptions": {
|
2022-10-28 07:24:03 -05:00
|
|
|
"ecmaVersion": 2022,
|
2016-12-14 10:39:17 -06:00
|
|
|
"ecmaFeatures": {
|
|
|
|
"impliedStrict": true
|
2017-03-23 12:52:20 -05:00
|
|
|
},
|
2019-02-01 08:05:48 -06:00
|
|
|
"sourceType": "module",
|
|
|
|
"allowImportExportEverywhere": true
|
2016-12-14 10:39:17 -06:00
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true,
|
2017-03-06 06:45:51 -06:00
|
|
|
"node": true
|
2016-12-14 10:39:17 -06: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 16:35:44 -05:00
|
|
|
"vars": "all"
|
2016-12-14 10:39:17 -06:00
|
|
|
}],
|
|
|
|
"no-empty": ["error", {
|
|
|
|
"allowEmptyCatch": true
|
|
|
|
}],
|
|
|
|
|
|
|
|
// disable rules from base configurations
|
|
|
|
"no-control-regex": "off",
|
2019-07-05 06:22:52 -05:00
|
|
|
"require-atomic-updates": "off",
|
|
|
|
"no-async-promise-executor": "off",
|
2016-12-14 10:39:17 -06:00
|
|
|
|
|
|
|
// stylistic conventions
|
|
|
|
"brace-style": ["error", "1tbs"],
|
2019-08-27 12:13:33 -05:00
|
|
|
"space-before-blocks": ["error", "always"],
|
2016-12-14 10:39:17 -06:00
|
|
|
"block-spacing": "error",
|
|
|
|
"array-bracket-spacing": "error",
|
|
|
|
"comma-spacing": "error",
|
2019-11-14 08:52:40 -06:00
|
|
|
"spaced-comment": ["error", "always", { "exceptions": ["/"] } ],
|
2016-12-14 10:39:17 -06:00
|
|
|
"comma-style": "error",
|
|
|
|
"computed-property-spacing": "error",
|
2017-02-09 09:09:33 -06:00
|
|
|
"no-trailing-spaces": "warn",
|
2016-12-14 10:39:17 -06:00
|
|
|
"eol-last": "error",
|
|
|
|
"func-call-spacing": "error",
|
2017-07-24 09:55:48 -05:00
|
|
|
"key-spacing": ["warn", {
|
|
|
|
"mode": "minimum"
|
|
|
|
}],
|
2016-12-14 10:39:17 -06:00
|
|
|
"indent": ["error", 4, {
|
2018-02-13 09:05:55 -06:00
|
|
|
"ignoreComments": true,
|
2016-12-14 10:39:17 -06:00
|
|
|
"ArrayExpression": "first",
|
|
|
|
"SwitchCase": 1
|
|
|
|
}],
|
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
"quotes": ["error", "double", {
|
2021-02-03 13:07:39 -06:00
|
|
|
"avoidEscape": true,
|
|
|
|
"allowTemplateLiterals": true
|
2016-12-14 10:39:17 -06:00
|
|
|
}],
|
2017-01-31 12:24:56 -06:00
|
|
|
"camelcase": ["error", {
|
|
|
|
"properties": "always"
|
|
|
|
}],
|
2016-12-14 10:39:17 -06:00
|
|
|
"semi": ["error", "always"],
|
2017-02-07 14:31:15 -06:00
|
|
|
"unicode-bom": "error",
|
|
|
|
"require-jsdoc": ["error", {
|
|
|
|
"require": {
|
|
|
|
"FunctionDeclaration": true,
|
|
|
|
"MethodDefinition": true,
|
|
|
|
"ClassDeclaration": true,
|
|
|
|
"ArrowFunctionExpression": true
|
|
|
|
}
|
2017-02-09 09:09:33 -06: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 12:08:50 -05:00
|
|
|
"space-in-parens": "error",
|
2018-04-02 11:10:51 -05:00
|
|
|
"no-var": "error",
|
|
|
|
"prefer-const": "error"
|
2016-12-14 10:39:17 -06:00
|
|
|
},
|
2018-12-28 20:58:05 -06:00
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": "tests/**/*",
|
|
|
|
"rules": {
|
|
|
|
"no-unused-expressions": "off",
|
|
|
|
"no-console": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2016-12-14 10:39:17 -06:00
|
|
|
"globals": {
|
2017-03-21 17:41:44 -05:00
|
|
|
"$": false,
|
|
|
|
"jQuery": false,
|
2017-12-28 12:17:38 -06:00
|
|
|
"log": false,
|
2019-03-09 00:25:27 -06:00
|
|
|
"app": false,
|
2017-03-21 17:41:44 -05:00
|
|
|
|
2017-03-22 11:55:21 -05:00
|
|
|
"COMPILE_TIME": false,
|
2017-06-16 10:36:42 -05:00
|
|
|
"COMPILE_MSG": false,
|
2019-07-05 04:17:52 -05:00
|
|
|
"PKG_VERSION": false
|
2016-12-14 10:39:17 -06:00
|
|
|
}
|
2017-02-23 12:59:58 -06:00
|
|
|
}
|