-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from CruGlobal/update-dependencies
Update Dependencies - Boost Security and keep repo up to date
- Loading branch information
Showing
74 changed files
with
1,371 additions
and
1,255 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
/dist | ||
/tmp | ||
/out-tsc | ||
.nx/ | ||
|
||
# dependencies | ||
/node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint | ||
yarn prettier:check |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"naumovs.color-highlight", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"eslint.validate": ["javascript", "typescript", "html"], | ||
"editor.formatOnSave": true, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"eslint.nodePath": "node_modules", | ||
"prettier.prettierPath": "./node_modules/prettier", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"editor.bracketPairColorization.enabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
import angularEslintPlugin from '@angular-eslint/eslint-plugin'; | ||
import angularEslintTemplatePlugin from '@angular-eslint/eslint-plugin-template'; | ||
import * as path from 'path'; | ||
import eslintPluginImport from 'eslint-plugin-import'; | ||
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin'; | ||
import typescriptParser from '@typescript-eslint/parser'; | ||
import eslintPluginPrettier from 'eslint-plugin-prettier'; | ||
|
||
export default [ | ||
{ | ||
ignores: ['dist/**'] | ||
}, | ||
{ | ||
files: ['**/*.ts'], | ||
languageOptions: { | ||
parser: typescriptParser, | ||
parserOptions: { | ||
project: [path.resolve('tsconfig.json')], | ||
createDefaultProgram: true | ||
} | ||
}, | ||
plugins: { | ||
'@angular-eslint': angularEslintPlugin, | ||
import: eslintPluginImport, | ||
'@typescript-eslint': typescriptEslintPlugin, | ||
prettier: eslintPluginPrettier | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
// Allows to import url starting from 'src' | ||
paths: ['.'], | ||
extensions: ['.js', '.ts', '.d.ts'] | ||
} | ||
} | ||
}, | ||
|
||
rules: { | ||
...eslintPluginImport.configs.errors.rules, | ||
...eslintPluginImport.configs.warnings.rules, | ||
...eslintPluginImport.configs.typescript.rules, | ||
...typescriptEslintPlugin.configs.recommended.rules, | ||
...angularEslintPlugin.configs.recommended.rules, | ||
'prettier/prettier': 'error', | ||
'@angular-eslint/component-selector': [ | ||
'error', | ||
{ | ||
prefix: 'app', | ||
style: 'kebab-case', | ||
type: 'element' | ||
} | ||
], | ||
'@angular-eslint/directive-selector': [ | ||
'error', | ||
{ | ||
prefix: 'app', | ||
style: 'camelCase', | ||
type: 'attribute' | ||
} | ||
], | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' } | ||
], | ||
'import/no-duplicates': 'error', | ||
'import/extensions': 'error', | ||
'import/order': [ | ||
'error', | ||
{ | ||
groups: [ | ||
'builtin', | ||
'external', | ||
'internal', | ||
'parent', | ||
'sibling', | ||
'index', | ||
'object', | ||
'type' | ||
], | ||
alphabetize: { order: 'asc' }, | ||
'newlines-between': 'never', | ||
pathGroups: [ | ||
{ | ||
pattern: '{@angular,angular/**}', | ||
group: 'external', | ||
position: 'before' | ||
}, | ||
{ | ||
pattern: '{src}/**', | ||
group: 'parent', | ||
position: 'before' | ||
} | ||
] | ||
} | ||
], | ||
'import/newline-after-import': 'error', | ||
'import/no-named-default': 'error', | ||
'import/no-named-as-default-member': 'off', | ||
'import/no-anonymous-default-export': 'error', | ||
'import/no-useless-path-segments': 'error', | ||
'import/dynamic-import-chunkname': 'error', | ||
'sort-imports': [ | ||
'error', | ||
{ | ||
ignoreDeclarationSort: true, | ||
ignoreMemberSort: false | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
files: ['*.html'], | ||
plugins: { | ||
'@angular-eslint/template': angularEslintTemplatePlugin | ||
}, | ||
rules: { | ||
...angularEslintTemplatePlugin.configs.recommended.rules | ||
} | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.