Skip to content

Commit ff9bfb8

Browse files
committed
upgrade gridjs to v3
1 parent 78aa8f6 commit ff9bfb8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+15573
-51316
lines changed

‎.eslintrc.json

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nrwl/nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nrwl/nx/javascript"],
32+
"rules": {}
33+
},
34+
{
35+
"files": ["*.ts"],
36+
"rules": {
37+
"@angular-eslint/component-selector": [
38+
"error",
39+
{
40+
"type": "element",
41+
"prefix": "app",
42+
"style": "kebab-case"
43+
}
44+
],
45+
"@angular-eslint/directive-selector": [
46+
"error",
47+
{
48+
"type": "attribute",
49+
"prefix": "app",
50+
"style": "camelCase"
51+
}
52+
],
53+
"@angular-eslint/no-conflicting-lifecycle": "error",
54+
"@angular-eslint/no-host-metadata-property": "error",
55+
"@angular-eslint/no-input-rename": "error",
56+
"@angular-eslint/no-inputs-metadata-property": "error",
57+
"@angular-eslint/no-output-native": "error",
58+
"@angular-eslint/no-output-on-prefix": "error",
59+
"@angular-eslint/no-output-rename": "error",
60+
"@angular-eslint/no-outputs-metadata-property": "error",
61+
"@angular-eslint/use-lifecycle-interface": "error",
62+
"@angular-eslint/use-pipe-transform-interface": "error",
63+
"@typescript-eslint/consistent-type-definitions": "error",
64+
"@typescript-eslint/dot-notation": "off",
65+
"@typescript-eslint/explicit-member-accessibility": [
66+
"off",
67+
{
68+
"accessibility": "explicit"
69+
}
70+
],
71+
"@typescript-eslint/member-ordering": "error",
72+
"@typescript-eslint/naming-convention": "error",
73+
"@typescript-eslint/no-empty-function": "off",
74+
"@typescript-eslint/no-empty-interface": "error",
75+
"@typescript-eslint/no-inferrable-types": [
76+
"error",
77+
{
78+
"ignoreParameters": true
79+
}
80+
],
81+
"@typescript-eslint/no-misused-new": "error",
82+
"@typescript-eslint/no-non-null-assertion": "error",
83+
"@typescript-eslint/no-shadow": [
84+
"error",
85+
{
86+
"hoist": "all"
87+
}
88+
],
89+
"@typescript-eslint/no-unused-expressions": "error",
90+
"@typescript-eslint/prefer-function-type": "error",
91+
"@typescript-eslint/unified-signatures": "error",
92+
"arrow-body-style": "error",
93+
"constructor-super": "error",
94+
"eqeqeq": ["error", "smart"],
95+
"guard-for-in": "error",
96+
"id-blacklist": "off",
97+
"id-match": "off",
98+
"import/no-deprecated": "warn",
99+
"no-bitwise": "error",
100+
"no-caller": "error",
101+
"no-console": [
102+
"error",
103+
{
104+
"allow": [
105+
"log",
106+
"warn",
107+
"dir",
108+
"timeLog",
109+
"assert",
110+
"clear",
111+
"count",
112+
"countReset",
113+
"group",
114+
"groupEnd",
115+
"table",
116+
"dirxml",
117+
"error",
118+
"groupCollapsed",
119+
"Console",
120+
"profile",
121+
"profileEnd",
122+
"timeStamp",
123+
"context"
124+
]
125+
}
126+
],
127+
"no-debugger": "error",
128+
"no-empty": "off",
129+
"no-eval": "error",
130+
"no-fallthrough": "error",
131+
"no-new-wrappers": "error",
132+
"no-restricted-imports": ["error", "rxjs/Rx"],
133+
"no-throw-literal": "error",
134+
"no-undef-init": "error",
135+
"no-underscore-dangle": "off",
136+
"no-var": "error",
137+
"prefer-const": "error",
138+
"radix": "error"
139+
},
140+
"plugins": [
141+
"eslint-plugin-import",
142+
"@angular-eslint/eslint-plugin",
143+
"@typescript-eslint"
144+
]
145+
},
146+
{
147+
"files": ["*.html"],
148+
"rules": {
149+
"@angular-eslint/template/banana-in-box": "error",
150+
"@angular-eslint/template/no-negated-async": "error"
151+
},
152+
"plugins": ["@angular-eslint/eslint-plugin-template"]
153+
}
154+
]
155+
}

‎.vscode/extensions.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"recommendations": [
3-
"nrwl.angular-console",
4-
"ms-vscode.vscode-typescript-tslint-plugin",
5-
"esbenp.prettier-vscode",
6-
"angular.ng-template"
7-
]
8-
9-
}
2+
"recommendations": [
3+
"nrwl.angular-console",
4+
"ms-vscode.vscode-typescript-tslint-plugin",
5+
"esbenp.prettier-vscode",
6+
"angular.ng-template",
7+
"firsttris.vscode-jest-runner"
8+
]
9+
}

‎angular.json

Lines changed: 115 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
{
22
"version": 1,
3+
"cli": {
4+
"defaultCollection": "@nrwl/angular"
5+
},
6+
"defaultProject": "demo",
7+
"schematics": {
8+
"@nrwl/angular:application": {
9+
"style": "scss",
10+
"linter": "eslint",
11+
"unitTestRunner": "jest",
12+
"e2eTestRunner": "cypress"
13+
},
14+
"@nrwl/angular:library": {
15+
"style": "scss",
16+
"linter": "eslint",
17+
"unitTestRunner": "jest"
18+
},
19+
"@nrwl/angular:component": {
20+
"style": "scss"
21+
}
22+
},
323
"projects": {
424
"gridjs-angular": {
525
"projectType": "library",
@@ -21,15 +41,11 @@
2141
}
2242
},
2343
"lint": {
24-
"builder": "@angular-devkit/build-angular:tslint",
44+
"builder": "@nrwl/linter:eslint",
2545
"options": {
26-
"tsConfig": [
27-
"libs/gridjs-angular/tsconfig.lib.json",
28-
"libs/gridjs-angular/tsconfig.spec.json"
29-
],
30-
"exclude": [
31-
"**/node_modules/**",
32-
"!libs/gridjs-angular/**/*"
46+
"lintFilePatterns": [
47+
"libs/gridjs-angular/src/**/*.ts",
48+
"libs/gridjs-angular/src/**/*.html"
3349
]
3450
}
3551
},
@@ -41,9 +57,7 @@
4157
"passWithNoTests": true,
4258
"setupFile": "libs/gridjs-angular/src/test-setup.ts"
4359
},
44-
"outputs": [
45-
"coverage/libs/gridjs-angular"
46-
]
60+
"outputs": ["coverage/libs/gridjs-angular"]
4761
},
4862
"storybook": {
4963
"builder": "@nrwl/storybook:storybook",
@@ -74,9 +88,7 @@
7488
"quiet": true
7589
}
7690
},
77-
"outputs": [
78-
"{options.outputPath}"
79-
]
91+
"outputs": ["{options.outputPath}"]
8092
}
8193
},
8294
"schematics": {
@@ -104,31 +116,100 @@
104116
}
105117
},
106118
"lint": {
107-
"builder": "@angular-devkit/build-angular:tslint",
119+
"builder": "@nrwl/linter:eslint",
108120
"options": {
109-
"tsConfig": [
110-
"apps/gridjs-angular-e2e/tsconfig.e2e.json"
111-
],
112-
"exclude": [
113-
"**/node_modules/**",
114-
"!apps/gridjs-angular-e2e/**/*"
121+
"lintFilePatterns": [
122+
"apps/gridjs-angular-e2e/src/**/*.ts",
123+
"apps/gridjs-angular-e2e/src/**/*.html"
115124
]
116125
}
117126
}
118127
}
119-
}
120-
},
121-
"cli": {
122-
"defaultCollection": "@nrwl/angular"
123-
},
124-
"schematics": {
125-
"@nrwl/angular:application": {
126-
"unitTestRunner": "jest",
127-
"e2eTestRunner": "cypress"
128128
},
129-
"@nrwl/angular:library": {
130-
"unitTestRunner": "jest"
129+
"demo": {
130+
"projectType": "application",
131+
"root": "apps/demo",
132+
"sourceRoot": "apps/demo/src",
133+
"prefix": "gridjs",
134+
"architect": {
135+
"build": {
136+
"builder": "@angular-devkit/build-angular:browser",
137+
"options": {
138+
"outputPath": "dist/apps/demo",
139+
"index": "apps/demo/src/index.html",
140+
"main": "apps/demo/src/main.ts",
141+
"polyfills": "apps/demo/src/polyfills.ts",
142+
"tsConfig": "apps/demo/tsconfig.app.json",
143+
"aot": true,
144+
"assets": ["apps/demo/src/favicon.ico", "apps/demo/src/assets"],
145+
"styles": ["apps/demo/src/styles.scss"],
146+
"scripts": []
147+
},
148+
"configurations": {
149+
"production": {
150+
"fileReplacements": [
151+
{
152+
"replace": "apps/demo/src/environments/environment.ts",
153+
"with": "apps/demo/src/environments/environment.prod.ts"
154+
}
155+
],
156+
"optimization": true,
157+
"outputHashing": "all",
158+
"sourceMap": false,
159+
"namedChunks": false,
160+
"extractLicenses": true,
161+
"vendorChunk": false,
162+
"buildOptimizer": true,
163+
"budgets": [
164+
{
165+
"type": "initial",
166+
"maximumWarning": "2mb",
167+
"maximumError": "5mb"
168+
},
169+
{
170+
"type": "anyComponentStyle",
171+
"maximumWarning": "6kb",
172+
"maximumError": "10kb"
173+
}
174+
]
175+
}
176+
}
177+
},
178+
"serve": {
179+
"builder": "@angular-devkit/build-angular:dev-server",
180+
"options": {
181+
"browserTarget": "demo:build"
182+
},
183+
"configurations": {
184+
"production": {
185+
"browserTarget": "demo:build:production"
186+
}
187+
}
188+
},
189+
"extract-i18n": {
190+
"builder": "@angular-devkit/build-angular:extract-i18n",
191+
"options": {
192+
"browserTarget": "demo:build"
193+
}
194+
},
195+
"lint": {
196+
"builder": "@nrwl/linter:eslint",
197+
"options": {
198+
"lintFilePatterns": [
199+
"apps/demo/src/**/*.ts",
200+
"apps/demo/src/**/*.html"
201+
]
202+
}
203+
},
204+
"test": {
205+
"builder": "@nrwl/jest:jest",
206+
"outputs": ["coverage/apps/demo"],
207+
"options": {
208+
"jestConfig": "apps/demo/jest.config.js",
209+
"passWithNoTests": true
210+
}
211+
}
212+
}
131213
}
132-
},
133-
"defaultProject": "demo"
214+
}
134215
}

‎apps/demo/.browserslistrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR
17+
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

0 commit comments

Comments
 (0)