From cc4024a0210f7491da03350a0c6b57a94d9b1447 Mon Sep 17 00:00:00 2001 From: Rainer Hahnekamp Date: Fri, 31 May 2024 15:53:22 +0300 Subject: [PATCH] feat(core): skip json imports Skip imports of json files. Fixes #68 --- .../angular-i/src/app/customers/data/customers.json | 7 +++++++ .../angular-i/src/app/customers/data/provide-customers.ts | 1 + .../angular-i/tests/expected-user-error-lint.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test-projects/angular-i/src/app/customers/data/customers.json diff --git a/test-projects/angular-i/src/app/customers/data/customers.json b/test-projects/angular-i/src/app/customers/data/customers.json new file mode 100644 index 0000000..443f9cd --- /dev/null +++ b/test-projects/angular-i/src/app/customers/data/customers.json @@ -0,0 +1,7 @@ +{ + "person": { + "id": 1, + "firstname": "Volker", + "lastname":"Gruber" + } +} diff --git a/test-projects/angular-i/src/app/customers/data/provide-customers.ts b/test-projects/angular-i/src/app/customers/data/provide-customers.ts index 167389b..42b97ee 100644 --- a/test-projects/angular-i/src/app/customers/data/provide-customers.ts +++ b/test-projects/angular-i/src/app/customers/data/provide-customers.ts @@ -2,6 +2,7 @@ import { provideState } from '@ngrx/store'; import { customersFeature } from './customers.reducer'; import { provideEffects } from '@ngrx/effects'; import { CustomersEffects } from './customers.effects'; +import "./customers.json" export const provideCustomers = [ provideState(customersFeature), diff --git a/test-projects/angular-i/tests/expected-user-error-lint.json b/test-projects/angular-i/tests/expected-user-error-lint.json index 902d415..9e4cae2 100644 --- a/test-projects/angular-i/tests/expected-user-error-lint.json +++ b/test-projects/angular-i/tests/expected-user-error-lint.json @@ -341,7 +341,7 @@ "warningCount": 0, "fixableErrorCount": 0, "fixableWarningCount": 0, - "source": "import { provideState } from '@ngrx/store';\nimport { customersFeature } from './customers.reducer';\nimport { provideEffects } from '@ngrx/effects';\nimport { CustomersEffects } from './customers.effects';\n\nexport const provideCustomers = [\n provideState(customersFeature),\n provideEffects([CustomersEffects]),\n];\n", + "source": "import { provideState } from '@ngrx/store';\nimport { customersFeature } from './customers.reducer';\nimport { provideEffects } from '@ngrx/effects';\nimport { CustomersEffects } from './customers.effects';\nimport \"./customers.json\"\n\nexport const provideCustomers = [\n provideState(customersFeature),\n provideEffects([CustomersEffects]),\n];\n", "usedDeprecatedRules": [] }, {