Skip to content

Commit

Permalink
Reformat and lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
4ver committed Apr 9, 2024
1 parent 48511cc commit 5b21022
Show file tree
Hide file tree
Showing 14 changed files with 6,008 additions and 1,165 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": [ "@babel/preset-env" ]
"presets": [ "@babel/preset-env" ]
}
13 changes: 1 addition & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,7 @@ root = true
[*]
charset = "utf-8"
indent_style = space
indent_size = 4
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,package-lock.json}]
indent_size = 2

[*.js]
indent_style = space
indent_size = 4

[*.json]
indent_style = space
indent_size = 4
73 changes: 46 additions & 27 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,48 @@
{
"extends": "airbnb-base",
"env": {
"browser": true,
"mocha": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"sourceType": "module"
},
"rules": {
"brace-style": "warn",
"class-methods-use-this": 0,
"comma-dangle": ["warn", "only-multiline"],
"indent": ["warn", 4, { "SwitchCase": 1 }],
"lines-between-class-members": "off",
"linebreak-style": "off",
"max-len": ["warn", 128],
"no-promise-executor-return": "warn",
"no-var": "error",
"no-useless-constructor": "off",
"object-curly-newline": "warn",
"object-curly-spacing": "warn",
"prefer-arrow-callback": "off",
"prefer-const": "warn",
"prefer-destructuring": "off"
}
"extends": "airbnb-base",
"env": {
"browser": true,
"mocha": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"sourceType": "module"
},
"rules": {
"brace-style": "warn",
"class-methods-use-this": 0,
"comma-dangle": [
"warn",
"only-multiline"
],
"indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"lines-between-class-members": "off",
"linebreak-style": "off",
"max-len": [
"warn",
128
],
"no-promise-executor-return": "warn",
"no-var": "error",
"no-useless-constructor": "off",
"object-curly-newline": "warn",
"object-curly-spacing": "warn",
"prefer-arrow-callback": "off",
"prefer-const": "warn",
"prefer-destructuring": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "always"
}
]
}
}
Loading

0 comments on commit 5b21022

Please sign in to comment.