Skip to content

Commit e32db46

Browse files
authored
Support Angular 15 and update 📦 (#14)
* Support Angular 15 and update 📦 * Remove usused external copied code * eslint-plugin-eslint-plugin rules * 📦 * Clean up * More linting rules activated * Move createRule to utils * tsconfig strictPropertyInitialization
1 parent 74918a9 commit e32db46

13 files changed

+678
-441
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ coverage/
22
dist/
33
node_modules/
44
package-lock.json
5-
6-
# Ignore copied files, to keep the code as close to the original as possible.
7-
**/external/

.eslintrc.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,19 @@
4646
],
4747

4848
"eslint-plugin/consistent-output": ["error", "always"],
49-
"eslint-plugin/meta-property-ordering": ["error"],
50-
"eslint-plugin/no-deprecated-context-methods": ["error"],
51-
"eslint-plugin/prefer-object-rule": ["error"],
52-
"eslint-plugin/prefer-placeholders": ["error"],
53-
"eslint-plugin/prefer-replace-text": ["error"],
49+
"eslint-plugin/meta-property-ordering": "error",
50+
"eslint-plugin/prefer-placeholders": "error",
51+
"eslint-plugin/prefer-replace-text": "error",
5452
"eslint-plugin/report-message-format": [
5553
"error",
5654
"^[A-Z].*(`{{prop}}`).*\\.$"
5755
], // Must start with capital, end with period and contains placeholder for "prop".
58-
"eslint-plugin/require-meta-docs-url": ["error"],
59-
"eslint-plugin/require-meta-schema": ["error"],
60-
"eslint-plugin/require-meta-type": ["error"],
56+
"eslint-plugin/require-meta-docs-description": "error",
57+
"eslint-plugin/require-meta-docs-url": "off", // This is handled by `ESLintUtils.RuleCreator`.
58+
"eslint-plugin/test-case-property-ordering": [
59+
"error",
60+
["name", "code", "options"]
61+
],
6162
"eslint-plugin/test-case-shorthand-strings": ["error", "consistent"]
6263
}
6364
},

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ jobs:
2929
# https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3
3030
- 14.15.0
3131
- 16.10.0
32+
- 18.10.0
3233
# Latest Node.js version.
3334
- latest
3435
eslint-version: [7, 8]
35-
# Angular ESLint version, and corresponding Typescript ESLint version.
36+
# Angular ESLint version, and corresponding typescript-eslint version.
3637
angular-eslint-version:
3738
- [13, "5.27.1"]
3839
- [14, "latest"]
40+
- [15, "latest"]
3941
steps:
4042
- uses: actions/checkout@v3
4143
- name: Setup Node.js ${{ matrix.node-version }}

.prettierignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ coverage/
22
dist/
33
node_modules/
44
package-lock.json
5-
6-
# Ignore copied files, to keep the code as close to the original as possible.
7-
**/external/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Read more about this rule [in the documentation](https://github.com/jerone/eslin
3030
You'll need to have an Angular project with the following packages installed:
3131

3232
- [ESLint](https://eslint.org/) - version 7 and 8 are tested.
33-
- [Angular ESLint](https://github.com/angular-eslint/angular-eslint) - version 13 and 14 are tested.
33+
- [Angular ESLint](https://github.com/angular-eslint/angular-eslint) - version 13, 14 & 15 are tested.
3434

3535
## Installation
3636

jest.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ module.exports = {
44
collectCoverage: true,
55
coverageDirectory: "coverage",
66
coverageReporters: ["text", "text-summary", "lcov", "cobertura"],
7-
collectCoverageFrom: [
8-
"src/**/*.ts",
9-
"!**/node_modules/**",
10-
"!**/external/**",
11-
],
7+
collectCoverageFrom: ["src/**/*.ts", "!**/node_modules/**"],
128
reporters: [
139
"default",
1410
[

0 commit comments

Comments
 (0)