Skip to content

Commit

Permalink
Merge pull request #28 from tech-advantage/wip/strict-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielM235 authored Nov 2, 2021
2 parents 2f25a3b + 6950782 commit 05dce63
Show file tree
Hide file tree
Showing 55 changed files with 3,040 additions and 6,205 deletions.
179 changes: 179 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
module.exports = {
"env": {
"browser": true,
"node": true
},
"extends": [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"@typescript-eslint/tslint"
],
"rules": {
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/naming-convention": ["error",
{
selector: 'default',
format: ['camelCase'],
leadingUnderscore: 'allow',
trailingUnderscore: 'allow',
},
{
selector: 'variable',
format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
leadingUnderscore: 'allow',
trailingUnderscore: 'allow',
},
{
selector: 'typeLike',
format: ['PascalCase'],
},
{
selector: 'enumMember',
format: ['UPPER_CASE'],
},
{
selector: 'classProperty',
format: ['camelCase', 'UPPER_CASE'],
},
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-shadow": [
"error",
{
"hoist": "all"
}
],
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/quotes": [
"error",
"single"
],
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": "error",
"brace-style": [
"error",
"1tbs"
],
"constructor-super": "error",
"curly": "error",
"dot-notation": "off",
"eol-last": "error",
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "error",
"id-blacklist": "off",
"id-match": "off",
"indent": "off",
"max-len": [
"error",
{
"code": 250
}
],
"no-bitwise": "error",
"no-caller": "error",
"no-console": [
"error",
{
"allow": [
"warn",
"error",
]
}
],
"no-debugger": "error",
"no-empty": "off",
"no-empty-function": "off",
"no-eval": "error",
"no-fallthrough": "error",
"no-new-wrappers": "error",
"no-restricted-imports": [
"error",
"rxjs"
],
"no-shadow": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "off",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-var": "error",
"prefer-const": "error",
"quotes": ["error", "single"],
"radix": "error",
"semi": "error",
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"@typescript-eslint/tslint/config": [
"error",
{
"rules": {
"import-spacing": true,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}
]
}
};
45 changes: 0 additions & 45 deletions conf/gulp.conf.js

This file was deleted.

32 changes: 0 additions & 32 deletions conf/karma-auto.conf.js

This file was deleted.

32 changes: 0 additions & 32 deletions conf/karma.conf.js

This file was deleted.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

27 changes: 0 additions & 27 deletions gulp_tasks/karma.js

This file was deleted.

48 changes: 0 additions & 48 deletions gulpfile.js

This file was deleted.

4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export { Toc } from './src/entities/toc';
export { InformationMap } from './src/entities/information-map';
export { Helper } from './src/entities/helper';
export { DocumentationTransfer } from './src/entities/documentation-transfer';
export { PopoverLabel } from './src/entities/popover-label'
export { PopoverError } from './src/entities/popover-error'
export { PopoverLabel } from './src/entities/popover-label';
export { PopoverError } from './src/entities/popover-error';
Loading

0 comments on commit 05dce63

Please sign in to comment.