Skip to content

Commit

Permalink
config: Adjust eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Seidelsohn committed May 30, 2021
1 parent ebb29c8 commit e57d70e
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"root": true,
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script"
"env": {
"es2020": true,
"jest": true,
"node": true
},
"globals": {
"YUI_config": true
"parserOptions": {
"ecmaVersion": 2020
},
"extends": "eslint:recommended",
"rules": {
"no-unused-vars": ["error", { "args": "after-used" }],
"semi": 2,
Expand All @@ -17,9 +17,16 @@
"no-irregular-whitespace": 2,
"no-useless-escape": 0,
"indent": ["error", 4],
"space-before-function-paren": ["error", "never"],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"arrow-body-style": [2, "always"],
"arrow-body-style": [2, "as-needed"],
"array-bracket-spacing": [2, "never"],
"object-curly-spacing": [2, "always"],
"key-spacing": ["error", { "beforeColon": false }]
Expand Down

0 comments on commit e57d70e

Please sign in to comment.