Skip to content

Commit

Permalink
syllables
Browse files Browse the repository at this point in the history
  • Loading branch information
lancejpollard committed May 17, 2023
1 parent fc5e57f commit 84b4f0a
Show file tree
Hide file tree
Showing 11 changed files with 682 additions and 262 deletions.
81 changes: 81 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import", "simple-import-sort", "sort-exports", "typescript-sort-keys", "sort-keys", "prettier"],
"extends": ["prettier"],
"rules": {
"curly": 2,
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"@typescript-eslint/no-unnecessary-condition": 0,
"@typescript-eslint/array-type": [
2,
{
"default": "generic"
}
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/consistent-type-definitions": [2, "type"],
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unsafe-argument": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/no-useless-empty-export": "error",
"@typescript-eslint/prefer-function-type": "error",
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": "error",
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": "error",
"lines-between-class-members": "off",
"@typescript-eslint/lines-between-class-members": "error",
"object-curly-spacing": "off",
"@typescript-eslint/object-curly-spacing": [2, "always"],
"padding-line-between-statements": "off",
"@typescript-eslint/padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": ["type"]
}
],
"space-before-blocks": "off",
"@typescript-eslint/space-before-blocks": ["error", "always"],
"@typescript-eslint/type-annotation-spacing": ["error", { "after": true }],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"sort-exports/sort-exports": ["error", { "sortDir": "asc" }],
"typescript-sort-keys/interface": "error",
"typescript-sort-keys/string-enum": "error",
"sort-keys": 0,
"sort-keys/sort-keys-fix": 2,
"prettier/prettier": 2,
"@typescript-eslint/no-unused-vars": "off",
"default-case": "error",
"default-case-last": "error"
}
}
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
host
node_modules
tmp
18 changes: 18 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 72,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "avoid",
"quoteProps": "as-needed",
"bracketSpacing": true,
"proseWrap": "always",
"endOfLine": "lf",
"singleAttributePerLine": true,
"prettierPath": "./node_modules/prettier",
"importOrder": ["^\\w(.*)$", "^@(.*)$", "~(.*)$", "\\..(.*)$", "\\.(.*)$"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript", "typescript"],
"eslint.nodePath": "./node_modules/eslint",
"eslint.packageManager": "npm"
}
Loading

0 comments on commit 84b4f0a

Please sign in to comment.