Skip to content

Commit

Permalink
build: update ngrx and angular eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Apr 15, 2021
1 parent 53d5b81 commit 2931bcc
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 252 deletions.
57 changes: 44 additions & 13 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": ["*.ts"],
"files": [
"*.ts"
],
"parserOptions": {
"project": ["tsconfig.json", "e2e/tsconfig.e2e.json"],
"project": [
"tsconfig.json",
"e2e/tsconfig.e2e.json"
],
"createDefaultProgram": true
},
"extends": [
Expand All @@ -14,14 +21,19 @@
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-selector": ["off"],
"@angular-eslint/component-selector": [
"off"
],
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"arrow-parens": ["off", "always"],
"arrow-parens": [
"off",
"always"
],
"import/order": "off",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-inferrable-types": "off",
Expand All @@ -32,23 +44,38 @@
"warn",
{
"selector": "default",
"format": ["camelCase", "snake_case", "UPPER_CASE", "PascalCase"],
"format": [
"camelCase",
"snake_case",
"UPPER_CASE",
"PascalCase"
],
"leadingUnderscore": "allowSingleOrDouble",
"trailingUnderscore": "allow"
},
{
"selector": "variable",
"format": ["camelCase", "snake_case", "UPPER_CASE", "PascalCase"],
"format": [
"camelCase",
"snake_case",
"UPPER_CASE",
"PascalCase"
],
"leadingUnderscore": "allowSingleOrDouble",
"trailingUnderscore": "allow"
},
{
"selector": "enum",
"format": ["PascalCase", "UPPER_CASE"]
"format": [
"PascalCase",
"UPPER_CASE"
]
},
{
"selector": "typeLike",
"format": ["PascalCase"]
"format": [
"PascalCase"
]
}
],
"prefer-const": "warn",
Expand All @@ -57,15 +84,15 @@
"max-len": [
"warn",
{
"ignorePattern": "^import \\{.+;$", // exclude import statements
"ignorePattern": "^import \\{.+;$",
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"code": 150
}
],
"id-blacklist": "warn",
"@typescript-eslint/member-delimiter-style": "warn",
"no-shadow": "off", // must be disabled, no-shadow rule handled by the next line
"no-shadow": "off",
"@typescript-eslint/no-shadow": "warn",
"prefer-arrow/prefer-arrow-functions": "off",
"@angular-eslint/directive-selector": [
Expand All @@ -80,8 +107,12 @@
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {
"@angular-eslint/template/no-negated-async": "off"
}
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
"devDependencies": {
"@angular-builders/custom-webpack": "^11.1.1",
"@angular-devkit/build-angular": "~0.1102.9",
"@angular-eslint/builder": "1.1.0",
"@angular-eslint/eslint-plugin": "1.1.0",
"@angular-eslint/eslint-plugin-template": "1.1.0",
"@angular-eslint/schematics": "1.1.0",
"@angular-eslint/template-parser": "1.1.0",
"@angular-eslint/builder": "^2.0.0",
"@angular-eslint/eslint-plugin": "^2.0.0",
"@angular-eslint/eslint-plugin-template": "^2.0.0",
"@angular-eslint/schematics": "2.1.0",
"@angular-eslint/template-parser": "^2.0.0",
"@angular/animations": "^11.2.10",
"@angular/cdk": "^11.2.9",
"@angular/cli": "^11.2.9",
Expand All @@ -109,12 +109,12 @@
"@angular/router": "^11.2.10",
"@angular/service-worker": "^11.2.10",
"@biesbjerg/ngx-translate-extract": "^2.3.4",
"@ngrx/data": "^11.0.1",
"@ngrx/effects": "^11.0.1",
"@ngrx/entity": "^11.0.1",
"@ngrx/schematics": "^11.0.1",
"@ngrx/store": "11.0.1",
"@ngrx/store-devtools": "^11.0.1",
"@ngrx/data": "^11.1.0",
"@ngrx/effects": "^11.1.0",
"@ngrx/entity": "^11.1.0",
"@ngrx/schematics": "^11.1.0",
"@ngrx/store": "11.1.0",
"@ngrx/store-devtools": "^11.1.0",
"@ngx-formly/core": "5.10.3",
"@ngx-formly/material": "5.10.3",
"@ngx-translate/core": "^13.0.0",
Expand All @@ -130,8 +130,8 @@
"@types/node": "12",
"@types/semver": "^7.3.1",
"@types/shortid": "^0.0.29",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.3.0",
"@typescript-eslint/eslint-plugin": "4.16.1",
"@typescript-eslint/parser": "4.16.1",
"angular-material-css-vars": "^1.1.2",
"angular2-promise-buttons": "^4.0.10",
"axios": "^0.21.1",
Expand Down Expand Up @@ -196,4 +196,4 @@
"resolutions": {
"webpack": "4.44.2"
}
}
}
Loading

0 comments on commit 2931bcc

Please sign in to comment.