Skip to content

Commit

Permalink
Merge branch 'module_4_lesson_06-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadezhda-v committed Oct 13, 2023
2 parents 1674067 + d32b20d commit ea847fa
Show file tree
Hide file tree
Showing 154 changed files with 746 additions and 16,565 deletions.
303 changes: 303 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,303 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended"],
"parserOptions": {
"parser": "babel-eslint",
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"no-console": "off",
"no-loop-func": [
"error"
],
"eqeqeq": [
"error",
"always"
],
"strict": [
"error",
"global"
],
"max-nested-callbacks": [
"error",
{
"max": 7
}
],
"new-parens": [
"error"
],
"no-unneeded-ternary": [
"error"
],
"no-whitespace-before-property": [
"error"
],
"operator-assignment": [
"error",
"always"
],
"space-in-parens": [
"error",
"never"
],
"space-infix-ops": [
"error"
],
"space-unary-ops": [
"error",
{
"words": true,
"nonwords": false,
"overrides": {
"typeof": false
}
}
],
"no-unreachable": [
"error"
],
"no-global-assign": [
"error"
],
"no-self-compare": [
"error"
],
"no-unmodified-loop-condition": [
"error"
],
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-useless-concat": [
"error"
],
"no-useless-escape": [
"error"
],
"no-shadow-restricted-names": [
"error"
],
"no-use-before-define": [
"error",
{
"functions": false
}
],
"arrow-body-style": [
"error",
"as-needed"
],
"arrow-spacing": [
"error"
],
"no-confusing-arrow": [
"error",
{
"allowParens": true
}
],
"no-useless-computed-key": [
"error"
],
"no-useless-rename": [
"error"
],
"object-shorthand": [
"error",
"always"
],
"prefer-arrow-callback": [
"error"
],
"prefer-numeric-literals": [
"error"
],
"template-curly-spacing": [
"error",
"never"
],
//!-google
"no-cond-assign": "off",
"no-irregular-whitespace": "error",
"no-unexpected-multiline": "error",
"valid-jsdoc": [
"error",
{
"requireParamDescription": false,
"requireReturnDescription": false,
"requireReturn": false,
"prefer": {
"returns": "return"
}
}
],
"curly": [
"error",
"multi-line"
],
"guard-for-in": "error",
"no-caller": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-invalid-this": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-new-wrappers": "error",
"no-throw-literal": "error",
"no-with": "error",
"prefer-promise-reject-errors": "error",
"no-unused-vars": [
"error",
{
"args": "none"
}
],
"array-bracket-newline": "off",
"array-bracket-spacing": [
"error",
"never"
],
"array-element-newline": "off",
"block-spacing": [
"error",
"never"
],
"brace-style": "error",
"camelcase": [
"error",
{
"properties": "never"
}
],
"comma-dangle": [
"error",
"always-multiline"
],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"eol-last": "error",
"func-call-spacing": "error",
"indent": [
"error",
2,
{
"CallExpression": {
"arguments": 1
},
"FunctionDeclaration": {
"body": 1,
"parameters": 2
},
"FunctionExpression": {
"body": 1,
"parameters": 2
},
"MemberExpression": 1,
"ObjectExpression": 1,
"SwitchCase": 1,
"ignoredNodes": [
"ConditionalExpression"
]
}
],
"key-spacing": "error",
"keyword-spacing": "error",
"max-len": [
"error",
{
"code": 80,
"tabWidth": 2,
"ignoreUrls": true,
"ignorePattern": "goog.(module|require)"
}
],
"new-cap": "error",
"no-array-constructor": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 2
}
],
"no-new-object": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"one-var": [
"error",
{
"var": "never",
"let": "never",
"const": "never"
}
],
"operator-linebreak": [
"error",
"after"
],
"padded-blocks": [
"error",
"never"
],
"quote-props": [
"error",
"consistent"
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],

"semi": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"asyncArrow": "always",
"anonymous": "never",
"named": "never"
}
],
"spaced-comment": [
"error",
"always"
],
"switch-colon-spacing": "error",
"constructor-super": "error",
"generator-star-spacing": [
"error",
"after"
],
"no-new-symbol": "error",
"no-this-before-super": "error",
"no-var": "error",
"prefer-const": [
"error",
{
"destructuring": "all"
}
],
"prefer-rest-params": "error",
"prefer-spread": "error",
"rest-spread-spacing": "error",
"yield-star-spacing": [
"error",
"after"
]
}
}
Loading

0 comments on commit ea847fa

Please sign in to comment.