feat(eslint): Renamed the configuration file
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
258
src/rules/default.json
Normal file
258
src/rules/default.json
Normal file
@@ -0,0 +1,258 @@
|
||||
{
|
||||
"arrow-parens": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"arrow-spacing": [
|
||||
"error",
|
||||
{
|
||||
"after": true,
|
||||
"before": true
|
||||
}
|
||||
],
|
||||
"brace-style": [
|
||||
"error",
|
||||
"1tbs",
|
||||
{
|
||||
"allowSingleLine": false
|
||||
}
|
||||
],
|
||||
"comma-dangle": [
|
||||
"error",
|
||||
"always-multiline"
|
||||
],
|
||||
"eol-last": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"eqeqeq": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"id-length": [
|
||||
"warn",
|
||||
{
|
||||
"max": 32,
|
||||
"min": 2,
|
||||
"properties": "always"
|
||||
}
|
||||
],
|
||||
"indent": [
|
||||
"error",
|
||||
"tab",
|
||||
{
|
||||
"ArrayExpression": 1,
|
||||
"CallExpression": {
|
||||
"arguments": 1
|
||||
},
|
||||
"FunctionDeclaration": {
|
||||
"body": 1,
|
||||
"parameters": 1
|
||||
},
|
||||
"FunctionExpression": {
|
||||
"body": 1,
|
||||
"parameters": 1
|
||||
},
|
||||
"ImportDeclaration": 1,
|
||||
"MemberExpression": 1,
|
||||
"ObjectExpression": 1,
|
||||
"SwitchCase": 1,
|
||||
"VariableDeclarator": "first",
|
||||
"flatTernaryExpressions": true,
|
||||
"ignoreComments": false,
|
||||
"ignoredNodes": [],
|
||||
"outerIIFEBody": 1
|
||||
}
|
||||
],
|
||||
"indent-legacy": [
|
||||
"off"
|
||||
],
|
||||
"key-spacing": [
|
||||
"error",
|
||||
{
|
||||
"afterColon": true,
|
||||
"beforeColon": false,
|
||||
"mode": "strict"
|
||||
}
|
||||
],
|
||||
"keyword-spacing": [
|
||||
"error",
|
||||
{
|
||||
"after": true,
|
||||
"before": true
|
||||
}
|
||||
],
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"lines-around-directive": [
|
||||
"off"
|
||||
],
|
||||
"newline-after-var": [
|
||||
"off"
|
||||
],
|
||||
"newline-before-return": [
|
||||
"off"
|
||||
],
|
||||
"no-alert": [
|
||||
"error"
|
||||
],
|
||||
"no-catch-shadow": [
|
||||
"off"
|
||||
],
|
||||
"no-console": [
|
||||
"warn"
|
||||
],
|
||||
"no-debugger": [
|
||||
"error"
|
||||
],
|
||||
"no-eval": [
|
||||
"error",
|
||||
{
|
||||
"allowIndirect": false
|
||||
}
|
||||
],
|
||||
"no-multi-spaces": [
|
||||
"error",
|
||||
{
|
||||
"exceptions": {},
|
||||
"ignoreEOLComments": false
|
||||
}
|
||||
],
|
||||
"no-native-reassign": [
|
||||
"off"
|
||||
],
|
||||
"no-negated-in-lhs": [
|
||||
"off"
|
||||
],
|
||||
"no-spaced-func": [
|
||||
"off"
|
||||
],
|
||||
"no-tabs": [
|
||||
"error",
|
||||
{
|
||||
"allowIndentationTabs": true
|
||||
}
|
||||
],
|
||||
"no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"args": "after-used",
|
||||
"caughtErrors": "all",
|
||||
"ignoreRestSiblings": false,
|
||||
"vars": "all"
|
||||
}
|
||||
],
|
||||
"object-curly-newline": [
|
||||
"error",
|
||||
{
|
||||
"consistent": true,
|
||||
"minProperties": 2,
|
||||
"multiline": true
|
||||
}
|
||||
],
|
||||
"object-curly-spacing": [
|
||||
"error",
|
||||
"always",
|
||||
{
|
||||
"arraysInObjects": false,
|
||||
"objectsInObjects": false
|
||||
}
|
||||
],
|
||||
"one-var": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"prefer-reflect": [
|
||||
"off"
|
||||
],
|
||||
"quote-props": [
|
||||
"error",
|
||||
"consistent-as-needed",
|
||||
{
|
||||
"keywords": true,
|
||||
"numbers": true,
|
||||
"unnecessary": true
|
||||
}
|
||||
],
|
||||
"quotes": [
|
||||
"error",
|
||||
"double",
|
||||
{
|
||||
"allowTemplateLiterals": false,
|
||||
"avoidEscape": false
|
||||
}
|
||||
],
|
||||
"require-jsdoc": [
|
||||
"off"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"always",
|
||||
{
|
||||
"omitLastInOneLineBlock": false
|
||||
}
|
||||
],
|
||||
"semi-spacing": [
|
||||
"error",
|
||||
{
|
||||
"after": true,
|
||||
"before": false
|
||||
}
|
||||
],
|
||||
"semi-style": [
|
||||
"error",
|
||||
"last"
|
||||
],
|
||||
"sort-imports": [
|
||||
"error",
|
||||
{
|
||||
"ignoreCase": false,
|
||||
"ignoreDeclarationSort": true,
|
||||
"ignoreMemberSort": false,
|
||||
"memberSyntaxSortOrder": [
|
||||
"all",
|
||||
"multiple",
|
||||
"single",
|
||||
"none"
|
||||
]
|
||||
}
|
||||
],
|
||||
"sort-keys": [
|
||||
"warn",
|
||||
"asc",
|
||||
{
|
||||
"caseSensitive": true,
|
||||
"minKeys": 2,
|
||||
"natural": true
|
||||
}
|
||||
],
|
||||
"sort-vars": [
|
||||
"error",
|
||||
{
|
||||
"ignoreCase": false
|
||||
}
|
||||
],
|
||||
"space-before-blocks": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"space-before-function-paren": [
|
||||
"error",
|
||||
{
|
||||
"anonymous": "always",
|
||||
"asyncArrow": "always",
|
||||
"named": "never"
|
||||
}
|
||||
],
|
||||
"valid-jsdoc": [
|
||||
"off"
|
||||
],
|
||||
"valid-typeof": [
|
||||
"error",
|
||||
{
|
||||
"requireStringLiterals": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user