Skip to content

Commit

Permalink
style: use JavaScript Standard Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed May 17, 2020
1 parent 0fc5b0d commit 435c442
Show file tree
Hide file tree
Showing 10 changed files with 470 additions and 423 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist/*
rollup*
54 changes: 32 additions & 22 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,41 @@
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"standard",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"indent": [
"dot-notation": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"no-dupe-class-members": "off",
"@typescript-eslint/no-dupe-class-members": "error",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/member-delimiter-style": "warn",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"no-trailing-spaces": [
"error",
4
{
"ignoreComments": true
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"comma-dangle": [
"warn",
"double"
],
"semi": [
"warn",
"never"
],
"no-console": "off"
"always-multiline"
]
},
"parserOptions": {
"project": [
"./tsconfig.json"
]
}
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"eslint.options": {},
"eslint.validate": [
"javascript",
"typescript",
],
"editor.tabSize": 2,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"typescript.format.insertSpaceBeforeFunctionParenthesis": true,
"javascript.format.insertSpaceAfterConstructor": true,
"typescript.format.insertSpaceAfterConstructor": true,
"[typescript]": {
"editor.formatOnSave": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
Loading

0 comments on commit 435c442

Please sign in to comment.