aboutsummaryrefslogtreecommitdiff
path: root/src/rules/javascript
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-06-17 23:20:56 +0300
committerValentin Popov <info@valentineus.link>2020-06-17 23:20:56 +0300
commit7f69fc6b1ee0ef43244785b4319dd53751ad74af (patch)
treeff722e9a388fdd2dc73461e9ef6a22be67863df1 /src/rules/javascript
parent802224efd3eabc428f4d91d6e21c19fc0b7f9db1 (diff)
downloadeslint-config-7f69fc6b1ee0ef43244785b4319dd53751ad74af.tar.xz
eslint-config-7f69fc6b1ee0ef43244785b4319dd53751ad74af.zip
Updated ESLint rules
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules/javascript')
-rw-r--r--src/rules/javascript/default.json44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/rules/javascript/default.json b/src/rules/javascript/default.json
index 3014de5..3bc17cc 100644
--- a/src/rules/javascript/default.json
+++ b/src/rules/javascript/default.json
@@ -2,7 +2,8 @@
"array-callback-return": [
"error",
{
- "allowImplicit": false
+ "allowImplicit": false,
+ "checkForEach": true
}
],
"arrow-parens": [
@@ -23,9 +24,6 @@
"allowSingleLine": false
}
],
- "callback-return": [
- "warn"
- ],
"camelcase": [
"error",
{
@@ -53,10 +51,7 @@
],
"comma-style": [
"error",
- "last",
- {
- "exceptions": {}
- }
+ "last"
],
"curly": [
"error",
@@ -80,9 +75,6 @@
"error",
"consistent"
],
- "handle-callback-err": [
- "error"
- ],
"id-length": [
"warn",
{
@@ -115,6 +107,7 @@
"flatTernaryExpressions": true,
"ignoreComments": false,
"ignoredNodes": [],
+ "offsetTernaryExpressions": 1,
"outerIIFEBody": 1
}
],
@@ -330,9 +323,6 @@
"no-new-func": [
"error"
],
- "no-new-require": [
- "error"
- ],
"no-new-wrappers": [
"error"
],
@@ -345,12 +335,6 @@
"props": true
}
],
- "no-path-concat": [
- "error"
- ],
- "no-process-env": [
- "off"
- ],
"no-proto": [
"error"
],
@@ -469,8 +453,24 @@
"object-curly-newline": [
"error",
{
+ "ExportDeclaration": {
+ "consistent": true,
+ "minProperties": 1,
+ "multiline": true
+ },
+ "ImportDeclaration": "never",
+ "ObjectExpression": {
+ "consistent": true,
+ "minProperties": 1,
+ "multiline": true
+ },
+ "ObjectPattern": {
+ "consistent": true,
+ "minProperties": 1,
+ "multiline": true
+ },
"consistent": true,
- "minProperties": 5,
+ "minProperties": 1,
"multiline": true
}
],
@@ -642,4 +642,4 @@
"onlyEquality": false
}
]
-}
+} \ No newline at end of file