@koffeine/eslint-config 23.3.0 → 24.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/index.js +1 -0
- package/package.json +11 -6
- package/CHANGELOG.md +0 -602
- package/src/index.js +0 -389
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ npm info @koffeine/eslint-config peerDependencies
|
|
|
26
26
|
For example:
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
npm install eslint@8.0
|
|
29
|
+
npm install eslint@8.1.0 --save-dev --save-exact
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Usage
|
|
@@ -35,7 +35,7 @@ Add the following to your .eslintrc.js file:
|
|
|
35
35
|
|
|
36
36
|
```js
|
|
37
37
|
module.exports = {
|
|
38
|
-
|
|
38
|
+
extends: '@koffeine'
|
|
39
39
|
};
|
|
40
40
|
```
|
|
41
41
|
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";module.exports={reportUnusedDisableDirectives:!0,rules:{"array-callback-return":["error",{allowImplicit:!1,checkForEach:!1}],"constructor-super":"error","for-direction":"error","getter-return":["error",{allowImplicit:!1}],"no-async-promise-executor":"error","no-await-in-loop":"error","no-class-assign":"error","no-compare-neg-zero":"error","no-cond-assign":["error","except-parens"],"no-const-assign":"error","no-constant-condition":["error",{checkLoops:!1}],"no-constructor-return":"error","no-control-regex":"error","no-debugger":"warn","no-dupe-args":"error","no-dupe-class-members":"error","no-dupe-else-if":"error","no-dupe-keys":"error","no-duplicate-case":"error","no-duplicate-imports":["error",{includeExports:!0}],"no-empty-character-class":"error","no-empty-pattern":"error","no-ex-assign":"error","no-fallthrough":["error",{commentPattern:"break[\\s\\w]*omitted"}],"no-func-assign":"error","no-import-assign":"error","no-inner-declarations":["error","both"],"no-invalid-regexp":"error","no-irregular-whitespace":["error",{skipStrings:!1,skipComments:!1,skipRegExps:!1,skipTemplates:!1}],"no-loss-of-precision":"error","no-misleading-character-class":"error","no-new-symbol":"error","no-obj-calls":"error","no-promise-executor-return":"error","no-prototype-builtins":"error","no-self-assign":["error",{props:!0}],"no-self-compare":"error","no-setter-return":"error","no-sparse-arrays":"error","no-template-curly-in-string":"error","no-this-before-super":"error","no-undef":["error",{typeof:!0}],"no-unexpected-multiline":"error","no-unmodified-loop-condition":"error","no-unreachable":"error","no-unreachable-loop":"error","no-unsafe-finally":"error","no-unsafe-negation":["error",{enforceForOrderingRelations:!0}],"no-unsafe-optional-chaining":["error",{disallowArithmeticOperators:!0}],"no-unused-private-class-members":"error","no-unused-vars":["error",{vars:"all",args:"all",ignoreRestSiblings:!1,caughtErrors:"all"}],"no-use-before-define":["error",{functions:!0,classes:!0,variables:!0}],"no-useless-backreference":"error","require-atomic-updates":"off","use-isnan":["error",{enforceForSwitchCase:!0,enforceForIndexOf:!0}],"valid-typeof":["error",{requireStringLiterals:!0}],"accessor-pairs":"off","arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!1}],"block-scoped-var":"error",camelcase:["error",{properties:"always",ignoreDestructuring:!1,ignoreImports:!1,ignoreGlobals:!1}],"capitalized-comments":"off","class-methods-use-this":"off",complexity:"off","consistent-return":["error",{treatUndefinedAsUnspecified:!0}],"consistent-this":["error","self"],curly:["error","all"],"default-case":"error","default-case-last":"error","default-param-last":"error","dot-notation":["error",{allowKeywords:!0}],eqeqeq:["error","smart"],"func-name-matching":["error","always",{considerPropertyDescriptor:!0,includeCommonJSModuleExports:!1}],"func-names":"off","func-style":["error","expression",{allowArrowFunctions:!0}],"grouped-accessor-pairs":["error","anyOrder"],"guard-for-in":"off","id-denylist":"off","id-length":"off","id-match":"off","init-declarations":"off","max-classes-per-file":"off","max-depth":"off","max-lines":"off","max-lines-per-function":"off","max-nested-callbacks":"off","max-params":"off","max-statements":"off","multiline-comment-style":"off","new-cap":["error",{newIsCap:!0,capIsNew:!0,properties:!0}],"no-alert":"warn","no-array-constructor":"error","no-bitwise":["error",{int32Hint:!1}],"no-caller":"error","no-case-declarations":"error","no-confusing-arrow":"off","no-console":"warn","no-continue":"off","no-delete-var":"error","no-div-regex":"off","no-else-return":"off","no-empty":["error",{allowEmptyCatch:!1}],"no-empty-function":"error","no-eq-null":"error","no-eval":["error",{allowIndirect:!1}],"no-extend-native":"error","no-extra-bind":"error","no-extra-boolean-cast":["error",{enforceForLogicalOperands:!0}],"no-extra-label":"error","no-extra-semi":"error","no-floating-decimal":"error","no-global-assign":"error","no-implicit-coercion":["error",{boolean:!0,number:!0,string:!0,disallowTemplateShorthand:!0}],"no-implicit-globals":"off","no-implied-eval":"error","no-inline-comments":"off","no-invalid-this":["error",{capIsConstructor:!0}],"no-iterator":"error","no-label-var":"error","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-lonely-if":"error","no-loop-func":"error","no-magic-numbers":"off","no-mixed-operators":["error",{groups:[["+","-","*","/","%","**"],["&","|","^","~","<<",">>",">>>"],["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!0}],"no-multi-assign":"off","no-multi-str":"error","no-negated-condition":"error","no-nested-ternary":"error","no-new":"error","no-new-func":"error","no-new-object":"error","no-new-wrappers":"error","no-nonoctal-decimal-escape":"error","no-octal":"error","no-octal-escape":"error","no-param-reassign":"off","no-plusplus":"off","no-proto":"error","no-redeclare":["error",{builtinGlobals:!0}],"no-regex-spaces":"error","no-restricted-exports":"off","no-restricted-globals":"off","no-restricted-imports":"off","no-restricted-properties":"off","no-restricted-syntax":"off","no-return-assign":"off","no-return-await":"error","no-script-url":"error","no-sequences":["error",{allowInParentheses:!1}],"no-shadow":["error",{builtinGlobals:!1,hoist:"all"}],"no-shadow-restricted-names":"error","no-ternary":"off","no-throw-literal":"error","no-undef-init":"error","no-undefined":"error","no-underscore-dangle":["error",{allowAfterThis:!1,allowAfterSuper:!1,allowAfterThisConstructor:!1,enforceInMethodNames:!0,allowFunctionParams:!1}],"no-unneeded-ternary":["error",{defaultAssignment:!0}],"no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1,enforceForJSX:!1}],"no-unused-labels":"error","no-useless-call":"error","no-useless-catch":"error","no-useless-computed-key":["error",{enforceForClassMembers:!0}],"no-useless-concat":"error","no-useless-constructor":"error","no-useless-escape":"error","no-useless-rename":["error",{ignoreImport:!1,ignoreExport:!1,ignoreDestructuring:!1}],"no-useless-return":"error","no-var":"error","no-void":["error",{allowAsStatement:!1}],"no-warning-comments":["warn",{terms:["todo","fixme","xxx"],location:"start"}],"no-with":"error","object-shorthand":["error","always",{avoidQuotes:!1,ignoreConstructors:!1,avoidExplicitReturnArrows:!0}],"one-var":"off","one-var-declaration-per-line":"off","operator-assignment":["error","always"],"prefer-arrow-callback":["error",{allowNamedFunctions:!1,allowUnboundThis:!1}],"prefer-const":["error",{destructuring:"all",ignoreReadBeforeAssign:!1}],"prefer-destructuring":"off","prefer-exponentiation-operator":"error","prefer-named-capture-group":"off","prefer-numeric-literals":"off","prefer-object-spread":"error","prefer-promise-reject-errors":"off","prefer-regex-literals":"error","prefer-rest-params":"error","prefer-spread":"error","prefer-template":"error","quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],radix:["error","as-needed"],"require-await":"error","require-unicode-regexp":"error","require-yield":"error","sort-imports":"off","sort-keys":"off","sort-vars":"off","spaced-comment":["error","always"],strict:["error","global"],"symbol-description":"off","vars-on-top":"off",yoda:["error","never",{exceptRange:!1,onlyEquality:!1}],"array-bracket-newline":["error","consistent"],"array-bracket-spacing":["error","always",{singleValue:!0,objectsInArrays:!0,arraysInArrays:!0}],"array-element-newline":["error","consistent"],"arrow-parens":["error","always"],"arrow-spacing":["error",{before:!0,after:!0}],"block-spacing":["error","always"],"brace-style":["error","1tbs",{allowSingleLine:!1}],"comma-dangle":["error","only-multiline"],"comma-spacing":["error",{before:!1,after:!0}],"comma-style":["error","last"],"computed-property-spacing":["error","never",{enforceForClassMembers:!0}],"dot-location":["error","property"],"eol-last":["error","always"],"func-call-spacing":["error","never"],"function-call-argument-newline":["error","consistent"],"function-paren-newline":["error","consistent"],"generator-star-spacing":["error",{before:!0,after:!1}],"implicit-arrow-linebreak":"off",indent:["error","tab",{SwitchCase:1,VariableDeclarator:1,outerIIFEBody:1,MemberExpression:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},CallExpression:{arguments:1},ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,offsetTernaryExpressions:!1,ignoreComments:!1}],"jsx-quotes":["error","prefer-double"],"key-spacing":["error",{beforeColon:!1,afterColon:!0,mode:"minimum"}],"keyword-spacing":["error",{before:!0,after:!0}],"line-comment-position":"off","linebreak-style":["error","unix"],"lines-around-comment":["error",{beforeBlockComment:!0,afterBlockComment:!1,beforeLineComment:!1,afterLineComment:!1,allowBlockStart:!0,allowBlockEnd:!0,allowObjectStart:!0,allowObjectEnd:!0,allowArrayStart:!0,allowArrayEnd:!0,allowClassStart:!0,allowClassEnd:!0,applyDefaultIgnorePatterns:!0}],"lines-between-class-members":["error","always",{exceptAfterSingleLine:!1}],"max-len":"off","max-statements-per-line":"off","multiline-ternary":"off","new-parens":["error","always"],"newline-per-chained-call":"off","no-extra-parens":["error","all",{conditionalAssign:!1,returnAssign:!0,nestedBinaryExpressions:!1,ignoreJSX:"none",enforceForArrowConditionals:!0,enforceForSequenceExpressions:!0,enforceForNewInMemberExpressions:!1,enforceForFunctionPrototypeMethods:!1}],"no-mixed-spaces-and-tabs":"error","no-multi-spaces":["error",{ignoreEOLComments:!1,exceptions:{Property:!0,BinaryExpression:!1,VariableDeclarator:!0,ImportDeclaration:!1}}],"no-multiple-empty-lines":["error",{max:2,maxEOF:1,maxBOF:0}],"no-tabs":"off","no-trailing-spaces":["error",{skipBlankLines:!1,ignoreComments:!1}],"no-whitespace-before-property":"error","nonblock-statement-body-position":"off","object-curly-newline":["error",{consistent:!0}],"object-curly-spacing":["error","always",{arraysInObjects:!0,objectsInObjects:!0}],"object-property-newline":"off","operator-linebreak":["error","before"],"padded-blocks":"off","padding-line-between-statements":["error",{prev:"*",next:"block",blankLine:"always"},{prev:"block",next:"*",blankLine:"always"},{prev:"*",next:"block-like",blankLine:"always"},{prev:"block-like",next:"*",blankLine:"always"},{prev:"*",next:"class",blankLine:"always"},{prev:"class",next:"*",blankLine:"always"},{prev:"*",next:"do",blankLine:"always"},{prev:"do",next:"*",blankLine:"always"},{prev:"*",next:"for",blankLine:"always"},{prev:"for",next:"*",blankLine:"always"},{prev:"*",next:"function",blankLine:"always"},{prev:"function",next:"*",blankLine:"always"},{prev:"*",next:"if",blankLine:"always"},{prev:"if",next:"*",blankLine:"always"},{prev:"*",next:"multiline-block-like",blankLine:"always"},{prev:"multiline-block-like",next:"*",blankLine:"always"},{prev:"*",next:"multiline-const",blankLine:"always"},{prev:"multiline-const",next:"*",blankLine:"always"},{prev:"*",next:"multiline-let",blankLine:"always"},{prev:"multiline-let",next:"*",blankLine:"always"},{prev:"*",next:"multiline-var",blankLine:"always"},{prev:"multiline-var",next:"*",blankLine:"always"},{prev:"*",next:"switch",blankLine:"always"},{prev:"switch",next:"*",blankLine:"always"},{prev:"*",next:"try",blankLine:"always"},{prev:"try",next:"*",blankLine:"always"},{prev:"*",next:"while",blankLine:"always"},{prev:"while",next:"*",blankLine:"always"}],quotes:["error","single",{avoidEscape:!0,allowTemplateLiterals:!1}],"rest-spread-spacing":["error","never"],semi:["error","always",{omitLastInOneLineBlock:!1}],"semi-spacing":["error",{before:!1,after:!0}],"semi-style":["error","last"],"space-before-blocks":["error","always"],"space-before-function-paren":["error",{anonymous:"never",named:"never",asyncArrow:"always"}],"space-in-parens":["error","never"],"space-infix-ops":["error",{int32Hint:!1}],"space-unary-ops":["error",{words:!0,nonwords:!1}],"switch-colon-spacing":["error",{before:!1,after:!0}],"template-curly-spacing":["error","never"],"template-tag-spacing":"off","unicode-bom":["error","never"],"wrap-iife":["error","outside",{functionPrototypeMethods:!1}],"wrap-regex":"off","yield-star-spacing":["error","before"]}};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koffeine/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"description": "Koffeine's ESLint shareable config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -13,20 +13,25 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Kornél Horváth <kornel.horvath@me.com>",
|
|
15
15
|
"files": [
|
|
16
|
-
"
|
|
16
|
+
"index.js"
|
|
17
17
|
],
|
|
18
|
-
"exports": "./
|
|
18
|
+
"exports": "./index.js",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "git+https://github.com/koffeine/eslint-config.git"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
|
-
"test": "eslint src test && node test src/index.js"
|
|
24
|
+
"test": "eslint src test && node test/index.mjs src/index.js",
|
|
25
|
+
"build": "esbuild --minify --outfile=index.js src/index.js",
|
|
26
|
+
"prepublishOnly": "npm test && npm run build",
|
|
27
|
+
"postpublish": "rm index.js"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
27
|
-
"
|
|
30
|
+
"@types/node": "^16",
|
|
31
|
+
"esbuild": "^0",
|
|
32
|
+
"eslint": "8.1.0"
|
|
28
33
|
},
|
|
29
34
|
"peerDependencies": {
|
|
30
|
-
"eslint": "8.0
|
|
35
|
+
"eslint": "8.1.0"
|
|
31
36
|
}
|
|
32
37
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,602 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## [Unreleased]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
## [23.3.0] - 2021-10-18
|
|
13
|
-
|
|
14
|
-
### Changed
|
|
15
|
-
|
|
16
|
-
- Disabled no-return-assign rule
|
|
17
|
-
- Updated lines-around-comment rule with `{ beforeBlockComment: true, afterBlockComment: false, beforeLineComment: false, afterLineComment: false, allowBlockStart: true, allowBlockEnd: true, allowObjectStart: true, allowObjectEnd: true, allowArrayStart: true, allowArrayEnd: true, allowClassStart: true, allowClassEnd: true, applyDefaultIgnorePatterns: true }`
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## [23.2.0] - 2021-10-17
|
|
21
|
-
|
|
22
|
-
### Changed
|
|
23
|
-
|
|
24
|
-
- Updated no-shadow rule with `{ builtinGlobals: false, hoist: 'all' }`
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## [23.1.0] - 2021-10-17
|
|
28
|
-
|
|
29
|
-
### Changed
|
|
30
|
-
|
|
31
|
-
- Updated lines-around-comment rule with `{ beforeBlockComment: true, afterBlockComment: false, beforeLineComment: false, afterLineComment: false, allowBlockStart: true, allowBlockEnd: false, allowObjectStart: true, allowObjectEnd: false, allowArrayStart: true, allowArrayEnd: false, allowClassStart: true, allowClassEnd: false, applyDefaultIgnorePatterns: true }`
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
## [23.0.0] - 2021-10-16
|
|
35
|
-
|
|
36
|
-
### Changed
|
|
37
|
-
|
|
38
|
-
- Enabled array-bracket-newline rule with `'consistent'`
|
|
39
|
-
- Enabled arrow-body-style rule with `'as-needed', { requireReturnForObjectLiteral: false }`
|
|
40
|
-
- Updated brace-style rule with `'1tbs', { allowSingleLine: false }`
|
|
41
|
-
- Updated comma-dangle rule with `'only-multiline'`
|
|
42
|
-
- Enabled constructor-super rule
|
|
43
|
-
- Updated default-case rule with `{ commentPattern: '/^no default$/iu' }`
|
|
44
|
-
- Enabled for-direction rule
|
|
45
|
-
- Enabled func-name-matching rule with `'always', { considerPropertyDescriptor: true, includeCommonJSModuleExports: false }`
|
|
46
|
-
- Enabled function-call-argument-newline rule with `'consistent'`
|
|
47
|
-
- Updated lines-around-comment rule with `{ beforeBlockComment: true, afterBlockComment: false, beforeLineComment: true, afterLineComment: false, allowBlockStart: true, allowBlockEnd: false, allowObjectStart: true, allowObjectEnd: false, allowArrayStart: true, allowArrayEnd: false, allowClassStart: true, allowClassEnd: false, applyDefaultIgnorePatterns: true }`
|
|
48
|
-
- Enabled no-cond-assign rule with `'except-parens'`
|
|
49
|
-
- Updated no-extra-parens rule with `'all', { conditionalAssign: false, returnAssign: true, nestedBinaryExpressions: false, ignoreJSX: 'none', enforceForArrowConditionals: true, enforceForSequenceExpressions: true, enforceForNewInMemberExpressions: false, enforceForFunctionPrototypeMethods: false }`
|
|
50
|
-
- Updated no-fallthrough rule with `{ commentPattern: 'break[\\s\\w]*omitted' }`
|
|
51
|
-
- Enabled no-floating-decimal rule
|
|
52
|
-
- Updated no-irregular-whitespace rule with `{ skipStrings: false, skipComments: false, skipRegExps: false, skipTemplates: false }`
|
|
53
|
-
- Enabled no-lonely-if rule
|
|
54
|
-
- Updated no-multi-spaces rule with `{ ignoreEOLComments: false, exceptions: { Property: true, BinaryExpression: false, VariableDeclarator: true, ImportDeclaration: false } }`
|
|
55
|
-
- Updated no-multiple-empty-lines rule with `{ max: 2, maxEOF: 1, maxBOF: 0 }`
|
|
56
|
-
- Enabled no-prototype-builtins rule
|
|
57
|
-
- Enabled no-return-assign rule with `'always'`
|
|
58
|
-
- Updated no-shadow rule with `{ builtinGlobals: true, hoist: 'all' }`
|
|
59
|
-
- Enabled no-throw-literal rule
|
|
60
|
-
- Updated no-unneeded-ternary rule with `{ defaultAssignment: true }`
|
|
61
|
-
- Updated no-unused-vars rule with `{ vars: 'all', args: 'all', ignoreRestSiblings: false, caughtErrors: 'all' }`
|
|
62
|
-
- Updated no-useless-computed-key rule with `{ enforceForClassMembers: true }`
|
|
63
|
-
- Enabled object-curly-newline rule with `{ consistent: true }`
|
|
64
|
-
- Enabled object-shorthand rule with `'always', { avoidQuotes: false, ignoreConstructors: false, avoidExplicitReturnArrows: true }`
|
|
65
|
-
- Updated prefer-arrow-callback rule with `{ allowNamedFunctions: false, allowUnboundThis: false }`
|
|
66
|
-
- Enabled prefer-const rule with `{ destructuring: 'all', ignoreReadBeforeAssign: false }`
|
|
67
|
-
- Enabled prefer-object-spread rule
|
|
68
|
-
- Updated space-before-function-paren rule with `{ anonymous: 'never', named: 'never', asyncArrow: 'always' }`
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
## [22.0.1] - 2021-10-14
|
|
72
|
-
|
|
73
|
-
### Changed
|
|
74
|
-
|
|
75
|
-
- Updated eslint to 8.0.1
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## [22.0.0] - 2021-10-12
|
|
79
|
-
|
|
80
|
-
### Changed
|
|
81
|
-
|
|
82
|
-
- Updated eslint to 8.0.0
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## [21.0.0] - 2021-10-09
|
|
86
|
-
|
|
87
|
-
### Changed
|
|
88
|
-
|
|
89
|
-
- Updated eol-last rule with `'always'`
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
## [20.0.0] - 2021-10-07
|
|
93
|
-
|
|
94
|
-
### Changed
|
|
95
|
-
|
|
96
|
-
- Updated func-style rule with `'expression', { allowArrowFunctions: true }`
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
## [19.1.3] - 2021-08-07
|
|
100
|
-
|
|
101
|
-
### Changed
|
|
102
|
-
|
|
103
|
-
- Updated eslint to 7.32.0
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## [19.1.2] - 2021-05-13
|
|
107
|
-
|
|
108
|
-
### Changed
|
|
109
|
-
|
|
110
|
-
- Updated eslint to 7.26.0
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
## [19.1.1] - 2021-04-27
|
|
114
|
-
|
|
115
|
-
### Changed
|
|
116
|
-
|
|
117
|
-
- Updated eslint to 7.25.0
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
## [19.1.0] - 2021-04-20
|
|
121
|
-
|
|
122
|
-
### Changed
|
|
123
|
-
|
|
124
|
-
- Updated func-style rule with `'declaration', { allowArrowFunctions: true }`
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
## [19.0.0] - 2021-04-11
|
|
128
|
-
|
|
129
|
-
### Changed
|
|
130
|
-
|
|
131
|
-
- Updated eslint to 7.24.0
|
|
132
|
-
- Updated no-implicit-coercion rule with `{ boolean: true, number: true, string: true, disallowTemplateShorthand: true }`
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
## [18.0.0] - 2021-04-06
|
|
136
|
-
|
|
137
|
-
### Changed
|
|
138
|
-
|
|
139
|
-
- Updated eslint to 7.23.0
|
|
140
|
-
- Updated no-sequences rule with `{ allowInParentheses: false }`
|
|
141
|
-
- Updated no-unused-expressions rule with `{ allowShortCircuit: false, allowTernary: false, allowTaggedTemplates: false, enforceForJSX: false }`
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
## [17.0.0] - 2021-01-16
|
|
145
|
-
|
|
146
|
-
### Changed
|
|
147
|
-
|
|
148
|
-
- Updated eslint to 7.18.0
|
|
149
|
-
- Enabled no-nonoctal-decimal-escape rule
|
|
150
|
-
- Enabled no-unsafe-optional-chaining rule with `{ disallowArithmeticOperators: true }`
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
## [16.0.2] - 2020-10-07
|
|
154
|
-
|
|
155
|
-
### Changed
|
|
156
|
-
|
|
157
|
-
- Updated eslint to 7.10.0
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
## [16.0.1] - 2020-09-15
|
|
161
|
-
|
|
162
|
-
### Changed
|
|
163
|
-
|
|
164
|
-
- Updated eslint to 7.9.0
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
## [16.0.0] - 2020-09-09
|
|
168
|
-
|
|
169
|
-
### Changed
|
|
170
|
-
|
|
171
|
-
- Updated eslint to 7.8.1
|
|
172
|
-
- Updated no-underscore-dangle rule with `{ allowAfterThis: false, allowAfterSuper: false, allowAfterThisConstructor: false, enforceInMethodNames: true, allowFunctionParams: false }`
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
## [15.0.2] - 2020-08-04
|
|
176
|
-
|
|
177
|
-
### Changed
|
|
178
|
-
|
|
179
|
-
- Updated eslint to 7.6.0
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
## [15.0.1] - 2020-07-28
|
|
183
|
-
|
|
184
|
-
### Changed
|
|
185
|
-
|
|
186
|
-
- Renamed package to `@koffeine/eslint-config`
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
## [15.0.0] - 2020-07-26
|
|
190
|
-
|
|
191
|
-
### Changed
|
|
192
|
-
|
|
193
|
-
- Updated eslint to 7.5.0
|
|
194
|
-
- Updated camelcase rule with `{ properties: 'always', ignoreDestructuring: false, ignoreImports: false, ignoreGlobals: false }`
|
|
195
|
-
- Enabled default-case-last rule
|
|
196
|
-
- Disabled global-require rule
|
|
197
|
-
- Disabled no-buffer-constructor rule
|
|
198
|
-
- Updated no-extra-boolean-cast rule with `{ enforceForLogicalOperands: true }`
|
|
199
|
-
- Updated no-extra-parens rule with `{ conditionalAssign: true, returnAssign: true, nestedBinaryExpressions: false, ignoreJSX: 'none', enforceForArrowConditionals: true, enforceForSequenceExpressions: true, enforceForNewInMemberExpressions: false, enforceForFunctionPrototypeMethods: false }`
|
|
200
|
-
- Enabled no-loss-of-precision rule
|
|
201
|
-
- Disabled no-mixed-requires rule
|
|
202
|
-
- Disabled no-new-require rule
|
|
203
|
-
- Disabled no-path-concat rule
|
|
204
|
-
- Disabled no-process-env rule
|
|
205
|
-
- Disabled no-process-exit rule
|
|
206
|
-
- Enabled no-promise-executor-return rule
|
|
207
|
-
- Enabled no-unreachable-loop rule
|
|
208
|
-
- Enabled no-useless-backreference rule
|
|
209
|
-
- Updated no-void rule with `{ allowAsStatement: false }`
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
## [14.0.3] - 2020-07-24
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
## [14.0.2] - 2020-01-06
|
|
216
|
-
|
|
217
|
-
### Changed
|
|
218
|
-
|
|
219
|
-
- Updated eslint to 6.8.0
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
## [14.0.1] - 2019-12-02
|
|
223
|
-
|
|
224
|
-
### Changed
|
|
225
|
-
|
|
226
|
-
- Updated eslint to 6.7.2
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
## [14.0.0] - 2019-11-25
|
|
230
|
-
|
|
231
|
-
### Changed
|
|
232
|
-
|
|
233
|
-
- Updated eslint to 6.7.1
|
|
234
|
-
- Updated camelcase rule with `{ properties: 'always', ignoreDestructuring: false, ignoreImports: false }`
|
|
235
|
-
- Enabled grouped-accessor-pairs rule with `'anyOrder'`
|
|
236
|
-
- Enabled no-constructor-return rule
|
|
237
|
-
- Enabled no-dupe-else-if rule
|
|
238
|
-
- Enabled no-setter-return rule
|
|
239
|
-
- Enabled prefer-exponentiation-operator rule
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
## [13.0.0] - 2019-10-28
|
|
243
|
-
|
|
244
|
-
### Changed
|
|
245
|
-
|
|
246
|
-
- Updated eslint to 6.6.0
|
|
247
|
-
- Updated no-extra-parens rule with `{ conditionalAssign: true, returnAssign: true, nestedBinaryExpressions: false, ignoreJSX: 'none', enforceForArrowConditionals: true, enforceForSequenceExpressions: true, enforceForNewInMemberExpressions: false }`
|
|
248
|
-
- Updated no-unsafe-negation rule with `{ enforceForOrderingRelations: true }`
|
|
249
|
-
- Updated use-isnan rule with `{ enforceForSwitchCase: true, enforceForIndexOf: true }`
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
## [12.0.0] - 2019-10-03
|
|
253
|
-
|
|
254
|
-
### Changed
|
|
255
|
-
|
|
256
|
-
- Updated eslint to 6.5.1
|
|
257
|
-
- Updated use-isnan rule with `{ enforceForSwitchCase: true }`
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
## [11.0.0] - 2019-09-16
|
|
261
|
-
|
|
262
|
-
### Changed
|
|
263
|
-
|
|
264
|
-
- Updated eslint to 6.4.0
|
|
265
|
-
- Updated computed-property-spacing rule with `'never', { enforceForClassMembers: true }`
|
|
266
|
-
- Enabled default-param-last rule
|
|
267
|
-
- Enabled no-import-assign rule
|
|
268
|
-
- Enabled prefer-regex-literals rule
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
## [10.0.0] - 2019-09-02
|
|
272
|
-
|
|
273
|
-
### Changed
|
|
274
|
-
|
|
275
|
-
- Updated eslint to 6.3.0
|
|
276
|
-
- Enabled reportUnusedDisableDirectives feature
|
|
277
|
-
- Updated no-extra-parens rule with `{ conditionalAssign: true, returnAssign: true, nestedBinaryExpressions: false, ignoreJSX: 'none', enforceForArrowConditionals: true, enforceForSequenceExpressions: true }`
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
## [9.0.0] - 2019-08-23
|
|
281
|
-
|
|
282
|
-
### Changed
|
|
283
|
-
|
|
284
|
-
- Updated eslint to 6.2.1
|
|
285
|
-
|
|
286
|
-
### Removed
|
|
287
|
-
|
|
288
|
-
- Removed ES5 syntax support
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
## [8.0.3] - 2019-07-22
|
|
292
|
-
|
|
293
|
-
### Changed
|
|
294
|
-
|
|
295
|
-
- Updated eslint to 6.1.0
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
## [8.0.2] - 2019-07-18
|
|
299
|
-
|
|
300
|
-
## Changed
|
|
301
|
-
|
|
302
|
-
- Disabled one-var rule
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
## [8.0.1] - 2019-07-01
|
|
306
|
-
|
|
307
|
-
### Changed
|
|
308
|
-
|
|
309
|
-
- Updated new-parens rule with `'always'`
|
|
310
|
-
- Disabled require-atomic-updates rule
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
## [8.0.0] - 2019-06-25
|
|
314
|
-
|
|
315
|
-
### Changed
|
|
316
|
-
|
|
317
|
-
- Updated eslint to 6.0.1
|
|
318
|
-
- Enabled function-paren-newline rule with `'consistent'`
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
## [7.0.9] - 2019-04-01
|
|
322
|
-
|
|
323
|
-
### Changed
|
|
324
|
-
|
|
325
|
-
- Updated eslint to 5.16.0
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
## [7.0.8] - 2019-03-19
|
|
329
|
-
|
|
330
|
-
### Changed
|
|
331
|
-
|
|
332
|
-
- Updated eslint to 5.15.3
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
## [7.0.7] - 2019-03-18
|
|
336
|
-
|
|
337
|
-
### Changed
|
|
338
|
-
|
|
339
|
-
- Updated eslint to 5.15.2
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
## [7.0.6] - 2019-03-05
|
|
343
|
-
|
|
344
|
-
### Changed
|
|
345
|
-
|
|
346
|
-
- Updated eslint to 5.15.1
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
## [7.0.5] - 2019-03-04
|
|
350
|
-
|
|
351
|
-
### Changed
|
|
352
|
-
|
|
353
|
-
- Updated eslint to 5.15.0
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
## [7.0.4] - 2019-02-19
|
|
357
|
-
|
|
358
|
-
### Changed
|
|
359
|
-
|
|
360
|
-
- Updated eslint to 5.14.1
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
## [7.0.3] - 2019-02-18
|
|
364
|
-
|
|
365
|
-
### Changed
|
|
366
|
-
|
|
367
|
-
- Updated eslint to 5.14.0
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
## [7.0.2] - 2019-02-04
|
|
371
|
-
|
|
372
|
-
### Changed
|
|
373
|
-
|
|
374
|
-
- Updated eslint to 5.13.0
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
## [7.0.1] - 2019-01-21
|
|
378
|
-
|
|
379
|
-
### Changed
|
|
380
|
-
|
|
381
|
-
- Updated eslint to 5.12.1
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
## [7.0.0] - 2019-01-07
|
|
385
|
-
|
|
386
|
-
### Changed
|
|
387
|
-
|
|
388
|
-
- Updated eslint to 5.12.0
|
|
389
|
-
- Enabled no-useless-catch rule
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
## [6.0.0] - 2018-12-10
|
|
393
|
-
|
|
394
|
-
### Changed
|
|
395
|
-
|
|
396
|
-
- Updated eslint to 5.10.0
|
|
397
|
-
- Updated padding-line-between-statements rule with `{ prev: '*', next: 'block', blankLine: 'always' }, { prev: 'block', next: '*', blankLine: 'always' }, { prev: '*', next: 'block-like', blankLine: 'always' }, { prev: 'block-like', next: '*', blankLine: 'always' }, { prev: '*', next: 'class', blankLine: 'always' }, { prev: 'class', next: '*', blankLine: 'always' }, { prev: '*', next: 'do', blankLine: 'always' }, { prev: 'do', next: '*', blankLine: 'always' }, { prev: '*', next: 'for', blankLine: 'always' }, { prev: 'for', next: '*', blankLine: 'always' }, { prev: '*', next: 'function', blankLine: 'always' }, { prev: 'function', next: '*', blankLine: 'always' }, { prev: '*', next: 'if', blankLine: 'always' }, { prev: 'if', next: '*', blankLine: 'always' }, { prev: '*', next: 'multiline-block-like', blankLine: 'always' }, { prev: 'multiline-block-like', next: '*', blankLine: 'always' }, { prev: '*', next: 'multiline-const', blankLine: 'always' }, { prev: 'multiline-const', next: '*', blankLine: 'always' }, { prev: '*', next: 'multiline-let', blankLine: 'always' }, { prev: 'multiline-let', next: '*', blankLine: 'always' }, { prev: '*', next: 'multiline-var', blankLine: 'always' }, { prev: 'multiline-var', next: '*', blankLine: 'always' }, { prev: '*', next: 'switch', blankLine: 'always' }, { prev: 'switch', next: '*', blankLine: 'always' }, { prev: '*', next: 'try', blankLine: 'always' }, { prev: 'try', next: '*', blankLine: 'always' }, { prev: '*', next: 'while', blankLine: 'always' }, { prev: 'while', next: '*', blankLine: 'always' }`
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
## [5.0.10] - 2018-11-11
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
## [5.0.9] - 2018-11-11
|
|
404
|
-
|
|
405
|
-
### Changed
|
|
406
|
-
|
|
407
|
-
- Updated eslint to 5.9.0
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
## [5.0.8] - 2018-11-06
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
## [5.0.7] - 2018-11-06
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
## [5.0.6] - 2018-11-04
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
## [5.0.5] - 2018-10-27
|
|
420
|
-
|
|
421
|
-
### Changed
|
|
422
|
-
|
|
423
|
-
- Updated eslint to 5.8.0
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
## [5.0.4] - 2018-10-15
|
|
427
|
-
|
|
428
|
-
### Changed
|
|
429
|
-
|
|
430
|
-
- Updated eslint to 5.7.0
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
## [5.0.3] - 2018-09-30
|
|
434
|
-
|
|
435
|
-
### Changed
|
|
436
|
-
|
|
437
|
-
- Updated eslint to 5.6.1
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
## [5.0.2] - 2018-09-17
|
|
441
|
-
|
|
442
|
-
### Changed
|
|
443
|
-
|
|
444
|
-
- Updated eslint to 5.6.0
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
## [5.0.1] - 2018-09-03
|
|
448
|
-
|
|
449
|
-
### Changed
|
|
450
|
-
|
|
451
|
-
- Updated eslint to 5.5.0
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
## [5.0.0] - 2018-08-06
|
|
455
|
-
|
|
456
|
-
### Changed
|
|
457
|
-
|
|
458
|
-
- Updated eslint to 5.3.0
|
|
459
|
-
- Enabled no-async-promise-executor rule
|
|
460
|
-
- Enabled no-misleading-character-class rule
|
|
461
|
-
- Enabled require-atomic-updates rule
|
|
462
|
-
- Enabled require-unicode-regexp rule
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
## [4.0.2] - 2018-07-23
|
|
466
|
-
|
|
467
|
-
### Changed
|
|
468
|
-
|
|
469
|
-
- Updated eslint to 5.2.0
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
## [4.0.1] - 2018-07-09
|
|
473
|
-
|
|
474
|
-
### Changed
|
|
475
|
-
|
|
476
|
-
- Updated eslint to 5.1.0
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
## [4.0.0] - 2018-07-05
|
|
480
|
-
|
|
481
|
-
### Changed
|
|
482
|
-
|
|
483
|
-
- Updated eslint to 5.0.1
|
|
484
|
-
- Enabled array-element-newline rule with `'consistent'`
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
## [3.0.6] - 2018-03-10
|
|
488
|
-
|
|
489
|
-
### Changed
|
|
490
|
-
|
|
491
|
-
- Updated no-underscore-dangle rule with `{ allowAfterThis: true, allowAfterSuper: false, enforceInMethodNames: true }`
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
## [3.0.5] - 2018-03-22
|
|
495
|
-
|
|
496
|
-
### Changed
|
|
497
|
-
|
|
498
|
-
- Updated one-var rule with `{ var: 'always', let: 'always', const: 'always', separateRequires: true }`
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
## [3.0.4] - 2018-03-22
|
|
502
|
-
|
|
503
|
-
### Changed
|
|
504
|
-
|
|
505
|
-
- Updated eslint to 4.19.1
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
## [3.0.3] - 2018-03-05
|
|
509
|
-
|
|
510
|
-
### Changed
|
|
511
|
-
|
|
512
|
-
- Updated eslint to 4.18.2
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
## [3.0.2] - 2018-02-21
|
|
516
|
-
|
|
517
|
-
### Changed
|
|
518
|
-
|
|
519
|
-
- Updated eslint to 4.18.1
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
## [3.0.1] - 2018-02-19
|
|
523
|
-
|
|
524
|
-
### Changed
|
|
525
|
-
|
|
526
|
-
- Updated eslint to 4.18.0
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
## [3.0.0] - 2018-02-05
|
|
530
|
-
|
|
531
|
-
### Changed
|
|
532
|
-
|
|
533
|
-
- Updated eslint to 4.17.0
|
|
534
|
-
- Updated padding-line-between-statements rule with `{ blankLine: 'always', prev: '*', next: 'block-like' }, { blankLine: 'always', prev: 'block-like', next: '*' }, { blankLine: 'always', prev: '*', next: 'block' }, { blankLine: 'always', prev: 'block', next: '*' }, { blankLine: 'always', prev: '*', next: 'class' }, { blankLine: 'always', prev: 'class', next: '*' }, { blankLine: 'always', prev: '*', next: 'do' }, { blankLine: 'always', prev: 'do', next: '*' }, { blankLine: 'always', prev: '*', next: 'for' }, { blankLine: 'always', prev: 'for', next: '*' }, { blankLine: 'always', prev: '*', next: 'function' }, { blankLine: 'always', prev: 'function', next: '*' }, { blankLine: 'always', prev: '*', next: 'if' }, { blankLine: 'always', prev: 'if', next: '*' }, { blankLine: 'always', prev: '*', next: 'multiline-block-like' }, { blankLine: 'always', prev: 'multiline-block-like', next: '*' }, { blankLine: 'always', prev: '*', next: 'switch' }, { blankLine: 'always', prev: 'switch', next: '*' }, { blankLine: 'always', prev: '*', next: 'try' }, { blankLine: 'always', prev: 'try', next: '*' }, { blankLine: 'always', prev: '*', next: 'while' }, { blankLine: 'always', prev: 'while', next: '*' }`
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
## [2.0.2] - 2018-01-23
|
|
538
|
-
|
|
539
|
-
### Changed
|
|
540
|
-
|
|
541
|
-
- Updated eslint to 4.16.0
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
## [2.0.1] - 2018-01-08
|
|
545
|
-
|
|
546
|
-
### Changed
|
|
547
|
-
|
|
548
|
-
- Updated eslint to 4.15.0
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
## [2.0.0] - 2017-12-24
|
|
552
|
-
|
|
553
|
-
### Changed
|
|
554
|
-
|
|
555
|
-
- Updated eslint to 4.14.0
|
|
556
|
-
- Enabled one-var rule with `{ var: 'always', let: 'always', const: 'always', separateRequires: true }`
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
## [1.1.4] - 2017-12-12
|
|
560
|
-
|
|
561
|
-
### Changed
|
|
562
|
-
|
|
563
|
-
- Updated eslint to 4.13.1
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
## [1.1.3] - 2017-12-11
|
|
567
|
-
|
|
568
|
-
### Changed
|
|
569
|
-
|
|
570
|
-
- Updated eslint to 4.13.0
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
## [1.1.2] - 2017-11-30
|
|
574
|
-
|
|
575
|
-
### Changed
|
|
576
|
-
|
|
577
|
-
- Updated eslint to 4.12.1
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
## [1.1.1] - 2017-11-26
|
|
581
|
-
|
|
582
|
-
### Changed
|
|
583
|
-
|
|
584
|
-
- Updated eslint to 4.12.0
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
## [1.1.0] - 2017-11-21
|
|
588
|
-
|
|
589
|
-
### Added
|
|
590
|
-
|
|
591
|
-
- Added ES5 syntax support
|
|
592
|
-
|
|
593
|
-
### Changed
|
|
594
|
-
|
|
595
|
-
- Updated no-shadow rule with `{ builtinGlobals: false, hoist: 'all' }`
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
## [1.0.0] - 2017-11-21
|
|
599
|
-
|
|
600
|
-
### Added
|
|
601
|
-
|
|
602
|
-
- Initial public release
|
package/src/index.js
DELETED
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
reportUnusedDisableDirectives: true,
|
|
5
|
-
rules: {
|
|
6
|
-
// POSSIBLE PROBLEMS
|
|
7
|
-
|
|
8
|
-
'array-callback-return': [ 'error', { allowImplicit: false, checkForEach: false } ],
|
|
9
|
-
'constructor-super': 'error',
|
|
10
|
-
'for-direction': 'error',
|
|
11
|
-
'getter-return': [ 'error', { allowImplicit: false } ],
|
|
12
|
-
'no-async-promise-executor': 'error',
|
|
13
|
-
'no-await-in-loop': 'error',
|
|
14
|
-
'no-class-assign': 'error',
|
|
15
|
-
'no-compare-neg-zero': 'error',
|
|
16
|
-
'no-cond-assign': [ 'error', 'except-parens' ],
|
|
17
|
-
'no-const-assign': 'error',
|
|
18
|
-
'no-constant-condition': [ 'error', { checkLoops: false } ],
|
|
19
|
-
'no-constructor-return': 'error',
|
|
20
|
-
'no-control-regex': 'error',
|
|
21
|
-
'no-debugger': 'warn',
|
|
22
|
-
'no-dupe-args': 'error',
|
|
23
|
-
'no-dupe-class-members': 'error',
|
|
24
|
-
'no-dupe-else-if': 'error',
|
|
25
|
-
'no-dupe-keys': 'error',
|
|
26
|
-
'no-duplicate-case': 'error',
|
|
27
|
-
'no-duplicate-imports': [ 'error', { includeExports: true } ],
|
|
28
|
-
'no-empty-character-class': 'error',
|
|
29
|
-
'no-empty-pattern': 'error',
|
|
30
|
-
'no-ex-assign': 'error',
|
|
31
|
-
'no-fallthrough': [ 'error', { commentPattern: 'break[\\s\\w]*omitted' } ],
|
|
32
|
-
'no-func-assign': 'error',
|
|
33
|
-
'no-import-assign': 'error',
|
|
34
|
-
'no-inner-declarations': [ 'error', 'both' ],
|
|
35
|
-
'no-invalid-regexp': 'error',
|
|
36
|
-
'no-irregular-whitespace': [ 'error', { skipStrings: false, skipComments: false, skipRegExps: false, skipTemplates: false } ],
|
|
37
|
-
'no-loss-of-precision': 'error',
|
|
38
|
-
'no-misleading-character-class': 'error',
|
|
39
|
-
'no-new-symbol': 'error',
|
|
40
|
-
'no-obj-calls': 'error',
|
|
41
|
-
'no-promise-executor-return': 'error',
|
|
42
|
-
'no-prototype-builtins': 'error',
|
|
43
|
-
'no-self-assign': [ 'error', { props: true } ],
|
|
44
|
-
'no-self-compare': 'error',
|
|
45
|
-
'no-setter-return': 'error',
|
|
46
|
-
'no-sparse-arrays': 'error',
|
|
47
|
-
'no-template-curly-in-string': 'error',
|
|
48
|
-
'no-this-before-super': 'error',
|
|
49
|
-
'no-undef': [ 'error', { typeof: true } ],
|
|
50
|
-
'no-unexpected-multiline': 'error',
|
|
51
|
-
'no-unmodified-loop-condition': 'error',
|
|
52
|
-
'no-unreachable': 'error',
|
|
53
|
-
'no-unreachable-loop': 'error',
|
|
54
|
-
'no-unsafe-finally': 'error',
|
|
55
|
-
'no-unsafe-negation': [ 'error', { enforceForOrderingRelations: true } ],
|
|
56
|
-
'no-unsafe-optional-chaining': [ 'error', { disallowArithmeticOperators: true } ],
|
|
57
|
-
'no-unused-vars': [ 'error', { vars: 'all', args: 'all', ignoreRestSiblings: false, caughtErrors: 'all' } ],
|
|
58
|
-
'no-use-before-define': [ 'error', { functions: true, classes: true, variables: true } ],
|
|
59
|
-
'no-useless-backreference': 'error',
|
|
60
|
-
'require-atomic-updates': 'off', // https://github.com/eslint/eslint/issues/11899
|
|
61
|
-
'use-isnan': [ 'error', { enforceForSwitchCase: true, enforceForIndexOf: true } ],
|
|
62
|
-
'valid-typeof': [ 'error', { requireStringLiterals: true } ],
|
|
63
|
-
|
|
64
|
-
// SUGGESTIONS
|
|
65
|
-
|
|
66
|
-
'accessor-pairs': 'off',
|
|
67
|
-
'arrow-body-style': [ 'error', 'as-needed', { requireReturnForObjectLiteral: false } ],
|
|
68
|
-
'block-scoped-var': 'error',
|
|
69
|
-
'camelcase': [ 'error', { properties: 'always', ignoreDestructuring: false, ignoreImports: false, ignoreGlobals: false } ],
|
|
70
|
-
'capitalized-comments': 'off',
|
|
71
|
-
'class-methods-use-this': 'off',
|
|
72
|
-
'complexity': 'off',
|
|
73
|
-
'consistent-return': [ 'error', { treatUndefinedAsUnspecified: true } ],
|
|
74
|
-
'consistent-this': [ 'error', 'self' ],
|
|
75
|
-
'curly': [ 'error', 'all' ],
|
|
76
|
-
'default-case': [ 'error', { commentPattern: '/^no default$/iu' } ],
|
|
77
|
-
'default-case-last': 'error',
|
|
78
|
-
'default-param-last': 'error',
|
|
79
|
-
'dot-notation': [ 'error', { allowKeywords: true } ],
|
|
80
|
-
'eqeqeq': [ 'error', 'smart' ],
|
|
81
|
-
'func-name-matching': [ 'error', 'always', { considerPropertyDescriptor: true, includeCommonJSModuleExports: false } ],
|
|
82
|
-
'func-names': 'off',
|
|
83
|
-
'func-style': [ 'error', 'expression', { allowArrowFunctions: true } ],
|
|
84
|
-
'grouped-accessor-pairs': [ 'error', 'anyOrder' ],
|
|
85
|
-
'guard-for-in': 'off',
|
|
86
|
-
'id-denylist': 'off',
|
|
87
|
-
'id-length': 'off',
|
|
88
|
-
'id-match': 'off',
|
|
89
|
-
'init-declarations': 'off',
|
|
90
|
-
'max-classes-per-file': 'off',
|
|
91
|
-
'max-depth': 'off',
|
|
92
|
-
'max-lines': 'off',
|
|
93
|
-
'max-lines-per-function': 'off',
|
|
94
|
-
'max-nested-callbacks': 'off',
|
|
95
|
-
'max-params': 'off',
|
|
96
|
-
'max-statements': 'off',
|
|
97
|
-
'multiline-comment-style': 'off',
|
|
98
|
-
'new-cap': [ 'error', { newIsCap: true, capIsNew: true, properties: true } ],
|
|
99
|
-
'no-alert': 'warn',
|
|
100
|
-
'no-array-constructor': 'error',
|
|
101
|
-
'no-bitwise': [ 'error', { int32Hint: false } ],
|
|
102
|
-
'no-caller': 'error',
|
|
103
|
-
'no-case-declarations': 'error',
|
|
104
|
-
'no-confusing-arrow': 'off',
|
|
105
|
-
'no-console': 'warn',
|
|
106
|
-
'no-continue': 'off',
|
|
107
|
-
'no-delete-var': 'error',
|
|
108
|
-
'no-div-regex': 'off',
|
|
109
|
-
'no-else-return': 'off',
|
|
110
|
-
'no-empty': [ 'error', { allowEmptyCatch: false } ],
|
|
111
|
-
'no-empty-function': 'error',
|
|
112
|
-
'no-eq-null': 'error',
|
|
113
|
-
'no-eval': [ 'error', { allowIndirect: false } ],
|
|
114
|
-
'no-extend-native': 'error',
|
|
115
|
-
'no-extra-bind': 'error',
|
|
116
|
-
'no-extra-boolean-cast': [ 'error', { enforceForLogicalOperands: true } ],
|
|
117
|
-
'no-extra-label': 'error',
|
|
118
|
-
'no-extra-semi': 'error',
|
|
119
|
-
'no-floating-decimal': 'error',
|
|
120
|
-
'no-global-assign': 'error',
|
|
121
|
-
'no-implicit-coercion': [ 'error', { boolean: true, number: true, string: true, disallowTemplateShorthand: true } ],
|
|
122
|
-
'no-implicit-globals': 'off',
|
|
123
|
-
'no-implied-eval': 'error',
|
|
124
|
-
'no-inline-comments': 'off',
|
|
125
|
-
'no-invalid-this': [ 'error', { capIsConstructor: true } ],
|
|
126
|
-
'no-iterator': 'error',
|
|
127
|
-
'no-label-var': 'error',
|
|
128
|
-
'no-labels': [ 'error', { allowLoop: false, allowSwitch: false } ],
|
|
129
|
-
'no-lone-blocks': 'error',
|
|
130
|
-
'no-lonely-if': 'error',
|
|
131
|
-
'no-loop-func': 'error',
|
|
132
|
-
'no-magic-numbers': 'off',
|
|
133
|
-
'no-mixed-operators': [
|
|
134
|
-
'error',
|
|
135
|
-
{
|
|
136
|
-
groups: [
|
|
137
|
-
[ '+', '-', '*', '/', '%', '**' ],
|
|
138
|
-
[ '&', '|', '^', '~', '<<', '>>', '>>>' ],
|
|
139
|
-
[ '==', '!=', '===', '!==', '>', '>=', '<', '<=' ],
|
|
140
|
-
[ '&&', '||' ],
|
|
141
|
-
[ 'in', 'instanceof' ]
|
|
142
|
-
],
|
|
143
|
-
allowSamePrecedence: true
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
'no-multi-assign': 'off',
|
|
147
|
-
'no-multi-str': 'error',
|
|
148
|
-
'no-negated-condition': 'error',
|
|
149
|
-
'no-nested-ternary': 'error',
|
|
150
|
-
'no-new': 'error',
|
|
151
|
-
'no-new-func': 'error',
|
|
152
|
-
'no-new-object': 'error',
|
|
153
|
-
'no-new-wrappers': 'error',
|
|
154
|
-
'no-nonoctal-decimal-escape': 'error',
|
|
155
|
-
'no-octal': 'error',
|
|
156
|
-
'no-octal-escape': 'error',
|
|
157
|
-
'no-param-reassign': 'off',
|
|
158
|
-
'no-plusplus': 'off',
|
|
159
|
-
'no-proto': 'error',
|
|
160
|
-
'no-redeclare': [ 'error', { builtinGlobals: true } ],
|
|
161
|
-
'no-regex-spaces': 'error',
|
|
162
|
-
'no-restricted-exports': 'off',
|
|
163
|
-
'no-restricted-globals': 'off',
|
|
164
|
-
'no-restricted-imports': 'off',
|
|
165
|
-
'no-restricted-properties': 'off',
|
|
166
|
-
'no-restricted-syntax': 'off',
|
|
167
|
-
'no-return-assign': 'off',
|
|
168
|
-
'no-return-await': 'error',
|
|
169
|
-
'no-script-url': 'error',
|
|
170
|
-
'no-sequences': [ 'error', { allowInParentheses: false } ],
|
|
171
|
-
'no-shadow': [ 'error', { builtinGlobals: false, hoist: 'all' } ],
|
|
172
|
-
'no-shadow-restricted-names': 'error',
|
|
173
|
-
'no-ternary': 'off',
|
|
174
|
-
'no-throw-literal': 'error',
|
|
175
|
-
'no-undef-init': 'error',
|
|
176
|
-
'no-undefined': 'error',
|
|
177
|
-
'no-underscore-dangle': [
|
|
178
|
-
'error',
|
|
179
|
-
{
|
|
180
|
-
allowAfterThis: false,
|
|
181
|
-
allowAfterSuper: false,
|
|
182
|
-
allowAfterThisConstructor: false,
|
|
183
|
-
enforceInMethodNames: true,
|
|
184
|
-
allowFunctionParams: false
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
'no-unneeded-ternary': [ 'error', { defaultAssignment: true } ],
|
|
188
|
-
'no-unused-expressions': [ 'error', { allowShortCircuit: false, allowTernary: false, allowTaggedTemplates: false, enforceForJSX: false } ],
|
|
189
|
-
'no-unused-labels': 'error',
|
|
190
|
-
'no-useless-call': 'error',
|
|
191
|
-
'no-useless-catch': 'error',
|
|
192
|
-
'no-useless-computed-key': [ 'error', { enforceForClassMembers: true } ],
|
|
193
|
-
'no-useless-concat': 'error',
|
|
194
|
-
'no-useless-constructor': 'error',
|
|
195
|
-
'no-useless-escape': 'error',
|
|
196
|
-
'no-useless-rename': [ 'error', { ignoreImport: false, ignoreExport: false, ignoreDestructuring: false } ],
|
|
197
|
-
'no-useless-return': 'error',
|
|
198
|
-
'no-var': 'error',
|
|
199
|
-
'no-void': [ 'error', { allowAsStatement: false } ],
|
|
200
|
-
'no-warning-comments': [ 'warn', { terms: [ 'todo', 'fixme', 'xxx' ], location: 'start' } ],
|
|
201
|
-
'no-with': 'error',
|
|
202
|
-
'object-shorthand': [ 'error', 'always', { avoidQuotes: false, ignoreConstructors: false, avoidExplicitReturnArrows: true } ],
|
|
203
|
-
'one-var': 'off',
|
|
204
|
-
'one-var-declaration-per-line': 'off',
|
|
205
|
-
'operator-assignment': [ 'error', 'always' ],
|
|
206
|
-
'prefer-arrow-callback': [ 'error', { allowNamedFunctions: false, allowUnboundThis: false } ],
|
|
207
|
-
'prefer-const': [ 'error', { destructuring: 'all', ignoreReadBeforeAssign: false } ],
|
|
208
|
-
'prefer-destructuring': 'off',
|
|
209
|
-
'prefer-exponentiation-operator': 'error',
|
|
210
|
-
'prefer-named-capture-group': 'off',
|
|
211
|
-
'prefer-numeric-literals': 'off',
|
|
212
|
-
'prefer-object-spread': 'error',
|
|
213
|
-
'prefer-promise-reject-errors': 'off',
|
|
214
|
-
'prefer-regex-literals': 'error',
|
|
215
|
-
'prefer-rest-params': 'error',
|
|
216
|
-
'prefer-spread': 'error',
|
|
217
|
-
'prefer-template': 'error',
|
|
218
|
-
'quote-props': [ 'error', 'as-needed', { keywords: false, unnecessary: true, numbers: false } ],
|
|
219
|
-
'radix': [ 'error', 'as-needed' ],
|
|
220
|
-
'require-await': 'error',
|
|
221
|
-
'require-unicode-regexp': 'error',
|
|
222
|
-
'require-yield': 'error',
|
|
223
|
-
'sort-imports': 'off',
|
|
224
|
-
'sort-keys': 'off',
|
|
225
|
-
'sort-vars': 'off',
|
|
226
|
-
'spaced-comment': [ 'error', 'always' ],
|
|
227
|
-
'strict': [ 'error', 'global' ],
|
|
228
|
-
'symbol-description': 'off',
|
|
229
|
-
'vars-on-top': 'off',
|
|
230
|
-
'yoda': [ 'error', 'never', { exceptRange: false, onlyEquality: false } ],
|
|
231
|
-
|
|
232
|
-
// LAYOUT & FORMATTING
|
|
233
|
-
|
|
234
|
-
'array-bracket-newline': [ 'error', 'consistent' ],
|
|
235
|
-
'array-bracket-spacing': [ 'error', 'always', { singleValue: true, objectsInArrays: true, arraysInArrays: true } ],
|
|
236
|
-
'array-element-newline': [ 'error', 'consistent' ],
|
|
237
|
-
'arrow-parens': [ 'error', 'always' ],
|
|
238
|
-
'arrow-spacing': [ 'error', { before: true, after: true } ],
|
|
239
|
-
'block-spacing': [ 'error', 'always' ],
|
|
240
|
-
'brace-style': [ 'error', '1tbs', { allowSingleLine: false } ],
|
|
241
|
-
'comma-dangle': [ 'error', 'only-multiline' ],
|
|
242
|
-
'comma-spacing': [ 'error', { before: false, after: true } ],
|
|
243
|
-
'comma-style': [ 'error', 'last' ],
|
|
244
|
-
'computed-property-spacing': [ 'error', 'never', { enforceForClassMembers: true } ],
|
|
245
|
-
'dot-location': [ 'error', 'property' ],
|
|
246
|
-
'eol-last': [ 'error', 'always' ],
|
|
247
|
-
'func-call-spacing': [ 'error', 'never' ],
|
|
248
|
-
'function-call-argument-newline': [ 'error', 'consistent' ],
|
|
249
|
-
'function-paren-newline': [ 'error', 'consistent' ],
|
|
250
|
-
'generator-star-spacing': [ 'error', { before: true, after: false } ],
|
|
251
|
-
'implicit-arrow-linebreak': 'off',
|
|
252
|
-
'indent': [
|
|
253
|
-
'error',
|
|
254
|
-
'tab',
|
|
255
|
-
{
|
|
256
|
-
SwitchCase: 1,
|
|
257
|
-
VariableDeclarator: 1,
|
|
258
|
-
outerIIFEBody: 1,
|
|
259
|
-
MemberExpression: 1,
|
|
260
|
-
FunctionDeclaration: { parameters: 1, body: 1 },
|
|
261
|
-
FunctionExpression: { parameters: 1, body: 1 },
|
|
262
|
-
CallExpression: { arguments: 1 },
|
|
263
|
-
ArrayExpression: 1,
|
|
264
|
-
ObjectExpression: 1,
|
|
265
|
-
ImportDeclaration: 1,
|
|
266
|
-
flatTernaryExpressions: false,
|
|
267
|
-
offsetTernaryExpressions: false,
|
|
268
|
-
ignoreComments: false
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
|
-
'jsx-quotes': [ 'error', 'prefer-double' ],
|
|
272
|
-
'key-spacing': [ 'error', { beforeColon: false, afterColon: true, mode: 'minimum' } ],
|
|
273
|
-
'keyword-spacing': [ 'error', { before: true, after: true } ],
|
|
274
|
-
'line-comment-position': 'off',
|
|
275
|
-
'linebreak-style': [ 'error', 'unix' ],
|
|
276
|
-
'lines-around-comment': [
|
|
277
|
-
'error',
|
|
278
|
-
{
|
|
279
|
-
beforeBlockComment: true,
|
|
280
|
-
afterBlockComment: false,
|
|
281
|
-
beforeLineComment: false,
|
|
282
|
-
afterLineComment: false,
|
|
283
|
-
allowBlockStart: true,
|
|
284
|
-
allowBlockEnd: true,
|
|
285
|
-
allowObjectStart: true,
|
|
286
|
-
allowObjectEnd: true,
|
|
287
|
-
allowArrayStart: true,
|
|
288
|
-
allowArrayEnd: true,
|
|
289
|
-
allowClassStart: true,
|
|
290
|
-
allowClassEnd: true,
|
|
291
|
-
applyDefaultIgnorePatterns: true
|
|
292
|
-
}
|
|
293
|
-
],
|
|
294
|
-
'lines-between-class-members': [ 'error', 'always', { exceptAfterSingleLine: false } ],
|
|
295
|
-
'max-len': 'off',
|
|
296
|
-
'max-statements-per-line': 'off',
|
|
297
|
-
'multiline-ternary': 'off',
|
|
298
|
-
'new-parens': [ 'error', 'always' ],
|
|
299
|
-
'newline-per-chained-call': 'off',
|
|
300
|
-
'no-extra-parens': [
|
|
301
|
-
'error',
|
|
302
|
-
'all',
|
|
303
|
-
{
|
|
304
|
-
conditionalAssign: false,
|
|
305
|
-
returnAssign: true,
|
|
306
|
-
nestedBinaryExpressions: false,
|
|
307
|
-
ignoreJSX: 'none',
|
|
308
|
-
enforceForArrowConditionals: true,
|
|
309
|
-
enforceForSequenceExpressions: true,
|
|
310
|
-
enforceForNewInMemberExpressions: false,
|
|
311
|
-
enforceForFunctionPrototypeMethods: false
|
|
312
|
-
}
|
|
313
|
-
],
|
|
314
|
-
'no-mixed-spaces-and-tabs': 'error',
|
|
315
|
-
'no-multi-spaces': [ 'error', { ignoreEOLComments: false, exceptions: { Property: true, BinaryExpression: false, VariableDeclarator: true, ImportDeclaration: false } } ],
|
|
316
|
-
'no-multiple-empty-lines': [ 'error', { max: 2, maxEOF: 1, maxBOF: 0 } ],
|
|
317
|
-
'no-tabs': 'off',
|
|
318
|
-
'no-trailing-spaces': [ 'error', { skipBlankLines: false, ignoreComments: false } ],
|
|
319
|
-
'no-whitespace-before-property': 'error',
|
|
320
|
-
'nonblock-statement-body-position': 'off',
|
|
321
|
-
'object-curly-newline': [ 'error', { consistent: true } ],
|
|
322
|
-
'object-curly-spacing': [ 'error', 'always', { arraysInObjects: true, objectsInObjects: true } ],
|
|
323
|
-
'object-property-newline': 'off',
|
|
324
|
-
'operator-linebreak': [ 'error', 'before' ],
|
|
325
|
-
'padded-blocks': 'off',
|
|
326
|
-
'padding-line-between-statements': [
|
|
327
|
-
'error',
|
|
328
|
-
|
|
329
|
-
{ prev: '*', next: 'block', blankLine: 'always' },
|
|
330
|
-
{ prev: 'block', next: '*', blankLine: 'always' },
|
|
331
|
-
|
|
332
|
-
{ prev: '*', next: 'block-like', blankLine: 'always' },
|
|
333
|
-
{ prev: 'block-like', next: '*', blankLine: 'always' },
|
|
334
|
-
|
|
335
|
-
{ prev: '*', next: 'class', blankLine: 'always' },
|
|
336
|
-
{ prev: 'class', next: '*', blankLine: 'always' },
|
|
337
|
-
|
|
338
|
-
{ prev: '*', next: 'do', blankLine: 'always' },
|
|
339
|
-
{ prev: 'do', next: '*', blankLine: 'always' },
|
|
340
|
-
|
|
341
|
-
{ prev: '*', next: 'for', blankLine: 'always' },
|
|
342
|
-
{ prev: 'for', next: '*', blankLine: 'always' },
|
|
343
|
-
|
|
344
|
-
{ prev: '*', next: 'function', blankLine: 'always' },
|
|
345
|
-
{ prev: 'function', next: '*', blankLine: 'always' },
|
|
346
|
-
|
|
347
|
-
{ prev: '*', next: 'if', blankLine: 'always' },
|
|
348
|
-
{ prev: 'if', next: '*', blankLine: 'always' },
|
|
349
|
-
|
|
350
|
-
{ prev: '*', next: 'multiline-block-like', blankLine: 'always' },
|
|
351
|
-
{ prev: 'multiline-block-like', next: '*', blankLine: 'always' },
|
|
352
|
-
|
|
353
|
-
{ prev: '*', next: 'multiline-const', blankLine: 'always' },
|
|
354
|
-
{ prev: 'multiline-const', next: '*', blankLine: 'always' },
|
|
355
|
-
|
|
356
|
-
{ prev: '*', next: 'multiline-let', blankLine: 'always' },
|
|
357
|
-
{ prev: 'multiline-let', next: '*', blankLine: 'always' },
|
|
358
|
-
|
|
359
|
-
{ prev: '*', next: 'multiline-var', blankLine: 'always' },
|
|
360
|
-
{ prev: 'multiline-var', next: '*', blankLine: 'always' },
|
|
361
|
-
|
|
362
|
-
{ prev: '*', next: 'switch', blankLine: 'always' },
|
|
363
|
-
{ prev: 'switch', next: '*', blankLine: 'always' },
|
|
364
|
-
|
|
365
|
-
{ prev: '*', next: 'try', blankLine: 'always' },
|
|
366
|
-
{ prev: 'try', next: '*', blankLine: 'always' },
|
|
367
|
-
|
|
368
|
-
{ prev: '*', next: 'while', blankLine: 'always' },
|
|
369
|
-
{ prev: 'while', next: '*', blankLine: 'always' }
|
|
370
|
-
],
|
|
371
|
-
'quotes': [ 'error', 'single', { avoidEscape: true, allowTemplateLiterals: false } ],
|
|
372
|
-
'rest-spread-spacing': [ 'error', 'never' ],
|
|
373
|
-
'semi': [ 'error', 'always', { omitLastInOneLineBlock: false } ],
|
|
374
|
-
'semi-spacing': [ 'error', { before: false, after: true } ],
|
|
375
|
-
'semi-style': [ 'error', 'last' ],
|
|
376
|
-
'space-before-blocks': [ 'error', 'always' ],
|
|
377
|
-
'space-before-function-paren': [ 'error', { anonymous: 'never', named: 'never', asyncArrow: 'always' } ],
|
|
378
|
-
'space-in-parens': [ 'error', 'never' ],
|
|
379
|
-
'space-infix-ops': [ 'error', { int32Hint: false } ],
|
|
380
|
-
'space-unary-ops': [ 'error', { words: true, nonwords: false } ],
|
|
381
|
-
'switch-colon-spacing': [ 'error', { before: false, after: true } ],
|
|
382
|
-
'template-curly-spacing': [ 'error', 'never' ],
|
|
383
|
-
'template-tag-spacing': 'off',
|
|
384
|
-
'unicode-bom': [ 'error', 'never' ],
|
|
385
|
-
'wrap-iife': [ 'error', 'outside', { functionPrototypeMethods: false } ],
|
|
386
|
-
'wrap-regex': 'off',
|
|
387
|
-
'yield-star-spacing': [ 'error', 'before' ]
|
|
388
|
-
}
|
|
389
|
-
};
|