Skip to content

Commit 0c84d4b

Browse files
committed
Adjust base config to new recommended sets
1 parent af5aae2 commit 0c84d4b

File tree

7 files changed

+18
-14
lines changed

7 files changed

+18
-14
lines changed

docs/angular.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ Config for **Angular** projects.
5252
);
5353
```
5454

55-
## 📏 Rules (420)
55+
## 📏 Rules (421)
5656

57-
**344** rules are included from [`typescript` config](./angular.md#📏-rules-344). For brevity, only the **76** additional rules are listed in this document.
57+
**345** rules are included from [`typescript` config](./angular.md#📏-rules-345). For brevity, only the **76** additional rules are listed in this document.
5858

5959
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
6060

docs/graphql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Config for **GraphQL servers** implemented in Node.js.
3939
export default tseslint.config(...cpeslint.graphql);
4040
```
4141

42-
## 📏 Rules (316)
42+
## 📏 Rules (317)
4343

44-
**293** rules are included from [`node` config](./graphql.md#📏-rules-293). For brevity, only the **23** additional rules are listed in this document.
44+
**294** rules are included from [`node` config](./graphql.md#📏-rules-294). For brevity, only the **23** additional rules are listed in this document.
4545

4646
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
4747

docs/javascript.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Default config, suitable for any **JavaScript/TypeScript** project.
1414
export default tseslint.config(...cpeslint.javascript);
1515
```
1616

17-
## 📏 Rules (289)
17+
## 📏 Rules (290)
1818

1919
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
2020
21-
### 🚨 Errors (138)
21+
### 🚨 Errors (139)
2222

2323
| Plugin | Rule | Options | Autofix | Overrides |
2424
| :--------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: | :-------: |
@@ -54,6 +54,7 @@ Default config, suitable for any **JavaScript/TypeScript** project.
5454
| | [no-func-assign](https://eslint.org/docs/latest/rules/no-func-assign)<br />Disallow reassigning `function` declarations | | | |
5555
| | [no-global-assign](https://eslint.org/docs/latest/rules/no-global-assign)<br />Disallow assignments to native objects or read-only global variables | | | |
5656
| | [no-import-assign](https://eslint.org/docs/latest/rules/no-import-assign)<br />Disallow assigning to imported bindings | | | |
57+
| | [no-inner-declarations](https://eslint.org/docs/latest/rules/no-inner-declarations)<br />Disallow variable or `function` declarations in nested blocks | | | |
5758
| | [no-invalid-regexp](https://eslint.org/docs/latest/rules/no-invalid-regexp)<br />Disallow invalid regular expression strings in `RegExp` constructors | | | |
5859
| | [no-irregular-whitespace](https://eslint.org/docs/latest/rules/no-irregular-whitespace)<br />Disallow irregular whitespace | | | |
5960
| | [no-loss-of-precision](https://eslint.org/docs/latest/rules/no-loss-of-precision)<br />Disallow literal numbers that lose precision | | | |

docs/ngrx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ Config for **Angular** projects using **NgRx** library.
5252
);
5353
```
5454

55-
## 📏 Rules (450)
55+
## 📏 Rules (451)
5656

57-
**420** rules are included from [`angular` config](./ngrx.md#📏-rules-420). For brevity, only the **30** additional rules are listed in this document.
57+
**421** rules are included from [`angular` config](./ngrx.md#📏-rules-421). For brevity, only the **30** additional rules are listed in this document.
5858

5959
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
6060

docs/node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Config for **Node.js** projects.
2020
export default tseslint.config(...cpeslint.node);
2121
```
2222

23-
## 📏 Rules (293)
23+
## 📏 Rules (294)
2424

25-
**289** rules are included from [`javascript` config](./node.md#📏-rules-289). For brevity, only the **4** additional rules are listed in this document.
25+
**290** rules are included from [`javascript` config](./node.md#📏-rules-290). For brevity, only the **4** additional rules are listed in this document.
2626

2727
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
2828

docs/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ Config for strict **TypeScript** projects.
6565
export default tseslint.config(...cpeslint.typescript);
6666
```
6767

68-
## 📏 Rules (344)
68+
## 📏 Rules (345)
6969

70-
**289** rules are included from [`javascript` config](./typescript.md#📏-rules-289). For brevity, only the **55** additional rules are listed in this document.
70+
**290** rules are included from [`javascript` config](./typescript.md#📏-rules-290). For brevity, only the **55** additional rules are listed in this document.
7171

7272
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
7373

src/configs/javascript.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ export default tseslint.config(
3333
unicorn,
3434
},
3535
rules: {
36+
'no-empty-static-block': 'warn',
37+
'no-unused-private-class-members': 'warn',
3638
'@typescript-eslint/consistent-type-definitions': ['warn', 'type'],
39+
'@typescript-eslint/no-unused-expressions': 'warn',
3740
'@typescript-eslint/no-unused-vars': [
3841
'error',
3942
{
@@ -42,6 +45,7 @@ export default tseslint.config(
4245
ignoreRestSiblings: true,
4346
},
4447
],
48+
'@typescript-eslint/prefer-namespace-keyword': 'warn',
4549
...convertErrorsToWarnings(unicorn.configs['flat/recommended'].rules),
4650
'unicorn/switch-case-braces': ['warn', 'avoid'],
4751
'unicorn/better-regex': ['warn', { sortCharacterClasses: false }],
@@ -92,6 +96,7 @@ export default tseslint.config(
9296
{ skipBlankLines: true, skipComments: true },
9397
],
9498
'max-nested-callbacks': ['warn', { max: 3 }],
99+
'no-inner-declarations': 'error',
95100
'object-shorthand': 'warn',
96101
'no-bitwise': 'warn',
97102
'no-console': ['warn', { allow: ['error', 'warn', 'info'] }],
@@ -144,9 +149,7 @@ export default tseslint.config(
144149
},
145150
],
146151
'@typescript-eslint/prefer-function-type': 'warn',
147-
'@typescript-eslint/no-require-imports': 'error',
148152
'@typescript-eslint/no-shadow': 'warn',
149-
'@typescript-eslint/no-unused-expressions': 'warn',
150153

151154
// https://github.com/import-js/eslint-plugin-import#rules
152155
'import/extensions': ['warn', 'never', { json: 'always' }],

0 commit comments

Comments
 (0)