eslint-config-angular-strict 22.6.4 → 22.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.js +2 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ Add the following to your `package.json`:
|
|
|
80
80
|
|
|
81
81
|
### 4. Lint JSON, Markdown, TOML and YAML files (optional)
|
|
82
82
|
|
|
83
|
-
JSON, Markdown, TOML and YAML files are checked against the preset of their plugin (`recommended` for JSON and Markdown, `standard` for TOML and YAML) and the Unicorn rules recommended for them, but `ng lint` only looks at the patterns declared in `angular.json`. Add the ones you need there:
|
|
83
|
+
JSON, Markdown, TOML and YAML files are checked against the preset of their plugin (`recommended` for JSON and Markdown, `standard` for TOML and YAML) and the Unicorn rules recommended for them, but `ng lint` only looks at the patterns declared in `angular.json`. Add the ones you need there — files ignored by git are skipped:
|
|
84
84
|
|
|
85
85
|
```jsonc
|
|
86
86
|
{
|
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { configs, rules } from 'eslint-config-airbnb-extended';
|
|
|
2
2
|
import angularEslintPlugin from '@angular-eslint/eslint-plugin';
|
|
3
3
|
import angularTemplateParser from '@angular-eslint/template-parser';
|
|
4
4
|
import angularTemplatePlugin from '@angular-eslint/eslint-plugin-template';
|
|
5
|
+
import gitignore from 'eslint-config-flat-gitignore';
|
|
5
6
|
import importXPlugin from 'eslint-plugin-import-x';
|
|
6
7
|
import jsonPlugin from '@eslint/json';
|
|
7
8
|
import markdownPlugin from '@eslint/markdown';
|
|
@@ -26,6 +27,7 @@ const dataFiles = ['**/*.json', '**/*.json5', '**/*.jsonc', '**/*.md', '**/*.tom
|
|
|
26
27
|
|
|
27
28
|
export default [
|
|
28
29
|
{ ignores: ['dist/**', 'node_modules/**'] }, // Alone in its object, `ignores` is global: mixed with other keys it only applies to that block
|
|
30
|
+
gitignore({ strict: false }), // What git ignores is not linted either: the nearest `.gitignore` is read from the working directory up, if there is one
|
|
29
31
|
|
|
30
32
|
{
|
|
31
33
|
plugins: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-angular-strict",
|
|
3
|
-
"version": "22.6.
|
|
3
|
+
"version": "22.6.7",
|
|
4
4
|
"description": "Modern ESLint configuration with strict rules for Angular development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -42,14 +42,15 @@
|
|
|
42
42
|
"@eslint/json": "2.1.1",
|
|
43
43
|
"@eslint/markdown": "8.0.3",
|
|
44
44
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "8.71.
|
|
46
|
-
"@typescript-eslint/parser": "8.71.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "8.71.2",
|
|
46
|
+
"@typescript-eslint/parser": "8.71.2",
|
|
47
47
|
"eslint": "10.12.0",
|
|
48
48
|
"eslint-config-airbnb-extended": "3.3.0",
|
|
49
|
+
"eslint-config-flat-gitignore": "2.4.0",
|
|
49
50
|
"eslint-plugin-import-x": "4.17.1",
|
|
50
51
|
"eslint-plugin-perfectionist": "5.12.1",
|
|
51
52
|
"eslint-plugin-toml": "1.5.0",
|
|
52
|
-
"eslint-plugin-unicorn": "
|
|
53
|
+
"eslint-plugin-unicorn": "78.0.0",
|
|
53
54
|
"eslint-plugin-yml": "3.9.0"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|