Skip to content

Commit

Permalink
Merge af33c2b into 9995fef
Browse files Browse the repository at this point in the history
  • Loading branch information
WoodNeck committed Feb 26, 2021
2 parents 9995fef + af33c2b commit b00b3d2
Show file tree
Hide file tree
Showing 30 changed files with 2,978 additions and 1,634 deletions.
15 changes: 0 additions & 15 deletions .eslintrc

This file was deleted.

341 changes: 341 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,341 @@
/* eslint-disable @typescript-eslint/naming-convention */

module.exports = {
"env": {
"browser": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.eslint.json",
"sourceType": "module"
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"eslint-plugin-prefer-arrow",
"@typescript-eslint",
"@typescript-eslint/tslint"
],
"rules": {
"@typescript-eslint/adjacent-overload-signatures": "off",
"@typescript-eslint/array-type": [
"error",
{
"default": "array-simple"
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Object": {
"message": "Avoid using the `Object` type. Did you mean `object`?"
},
"Function": {
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
},
"Boolean": {
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
},
"Number": {
"message": "Avoid using the `Number` type. Did you mean `number`?"
},
"String": {
"message": "Avoid using the `String` type. Did you mean `string`?"
},
"Symbol": {
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
}
}
}
],
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/indent": [
"error",
2,
{
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
},
"SwitchCase": 1
}
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/member-ordering": ["error", {
"default": [
// Index signature
"signature",

// Static
"public-static-method",
"protected-static-method",
"private-static-method",

"public-static-field",
"protected-static-field",
"private-static-field",

"public-abstract-field",
"protected-abstract-field",
"private-abstract-field",

"public-instance-field",
"protected-instance-field",
"private-instance-field",

"constructor",

// Methods
"public-abstract-method",
"protected-abstract-method",
"private-abstract-method",

"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}],
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-new": "off",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/quotes": [
"error",
"double"
],
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/triple-slash-reference": [
"error",
{
"path": "always",
"types": "prefer-import",
"lib": "always"
}
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": "error",
"arrow-parens": [
"off",
"always"
],
"brace-style": [
"error",
"1tbs",
{ "allowSingleLine": true }
],
"comma-dangle": [
"error",
"never"
],
"complexity": "off",
"constructor-super": "error",
"curly": "off",
"eol-last": "error",
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "off",
"id-blacklist": "off",
"id-match": "off",
"import/order": "off",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "error",
"max-classes-per-file": [
"error",
1
],
"max-len": "off",
"new-parens": "error",
"no-bitwise": "off",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "warn",
"no-debugger": "error",
"no-empty": "error",
"no-eval": "error",
"no-fallthrough": "off",
"no-invalid-this": "off",
"no-multiple-empty-lines": "error",
"no-new-wrappers": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unsafe-finally": "error",
"no-unsafe-call": "off",
"no-unsafe-member-access": "off",
"no-unused-labels": "error",
"no-var": "error",
"object-shorthand": "off",
"one-var": [
"error",
"never"
],
"prefer-arrow/prefer-arrow-functions": "error",
"prefer-const": "error",
"quote-props": "off",
"radix": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"asyncArrow": "always",
"named": "never"
}
],
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"use-isnan": "error",
"valid-typeof": "off",
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"import/order": ["error", {"newlines-between": "always"}],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variableLike",
"format": ["camelCase"],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"modifiers": ["exported", "const"]
},
{
"selector": "memberLike",
"modifiers": ["public"],
"format": ["camelCase"],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "memberLike",
"modifiers": ["protected"],
"format": ["camelCase"],
"leadingUnderscore": "require",
"trailingUnderscore": "forbid"
},
{
"selector": "memberLike",
"modifiers": ["private"],
"format": ["camelCase"],
"leadingUnderscore": "require",
"trailingUnderscore": "forbid"
},
{
"selector": "classProperty",
"modifiers": ["static"],
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": "classMethod",
"modifiers": ["static"],
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": "property",
"modifiers": ["static"],
"format": ["UPPER_CASE"]
},
{
"selector": "objectLiteralProperty",
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": "objectLiteralMethod",
"format": ["camelCase", "UPPER_CASE"]
},
{
"selector": "parameter",
"modifiers": ["unused"],
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "typeLike",
"format": ["PascalCase", "UPPER_CASE"],
"leadingUnderscore": "allow"
},
{
"selector": "typeProperty",
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "allow"
}
],
"@typescript-eslint/tslint/config": [
"error",
{
"rules": {
"import-spacing": true,
"whitespace": [
true,
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-rest-spread",
"check-branch",
"check-type-operator",
"check-type",
"check-typecast",
"check-preblock"
]
}
}
]
}
};
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -162,6 +162,7 @@ fabric.properties
_site/
.sass-cache/
.jekyll-metadata
.jekyll-cache


### SublimeText ###
Expand Down
13 changes: 7 additions & 6 deletions .travis.yml
@@ -1,16 +1,17 @@
language: node_js
node_js:
- "10"
- "12"
dist: trusty
sudo: false
before_install:
- npm install -g npm@latest
- npm cache verify
- npm cache clean --force
- rm -rf package-lock.json
install:
- npm install
sudo: required
- npm i
addons:
chrome: stable
cache:
directories:
- "node_modules"
before_script:
- npm run lint
script:
Expand Down

0 comments on commit b00b3d2

Please sign in to comment.