@enormora/eslint-config-typescript 0.0.11 → 0.0.12
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/package.json +7 -2
- package/readme.md +29 -0
- package/typescript.js +1 -1
package/package.json
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
+
"author": "Mathias Schreck <schreck.mathias@gmail.com>",
|
|
3
|
+
"contributors": [
|
|
4
|
+
"Christian Rackerseder <github@echooff.de>"
|
|
5
|
+
],
|
|
2
6
|
"dependencies": {
|
|
3
7
|
"@typescript-eslint/eslint-plugin": "6.20.0",
|
|
4
8
|
"@typescript-eslint/parser": "6.20.0",
|
|
5
9
|
"eslint-plugin-functional": "6.0.0"
|
|
6
10
|
},
|
|
11
|
+
"description": "Enormora’s ESLint typescript configuration",
|
|
7
12
|
"license": "MIT",
|
|
8
13
|
"main": "typescript.js",
|
|
9
14
|
"name": "@enormora/eslint-config-typescript",
|
|
10
15
|
"peerDependencies": {
|
|
11
|
-
"@enormora/eslint-config-base": "0.0.
|
|
16
|
+
"@enormora/eslint-config-base": "0.0.12"
|
|
12
17
|
},
|
|
13
18
|
"repository": {
|
|
14
19
|
"type": "git",
|
|
15
20
|
"url": "git://github.com/enormora/eslint-config.git"
|
|
16
21
|
},
|
|
17
22
|
"type": "module",
|
|
18
|
-
"version": "0.0.
|
|
23
|
+
"version": "0.0.12"
|
|
19
24
|
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# `@enormora/eslint-config-typescript`
|
|
2
|
+
|
|
3
|
+
Config preset for typescript, enabling specific rules and compiler settings.
|
|
4
|
+
|
|
5
|
+
## Install & Setup
|
|
6
|
+
|
|
7
|
+
Install the `@enormora/eslint-config-typescript` and the base preset package via npm:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-typescript
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Create an ESLint configuration file (e.g., `eslint.config.js`) in your project and add the base and node config to the configuration array:
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import { baseConfig } from '@enormora/eslint-config-base';
|
|
17
|
+
import { typescriptConfig } from '@enormora/eslint-config-typescript';
|
|
18
|
+
|
|
19
|
+
export default [
|
|
20
|
+
{
|
|
21
|
+
ignores: ['dist/**/*']
|
|
22
|
+
},
|
|
23
|
+
baseConfig,
|
|
24
|
+
{
|
|
25
|
+
...typescriptConfig,
|
|
26
|
+
files: ['**/*.ts']
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
```
|
package/typescript.js
CHANGED
|
@@ -218,7 +218,7 @@ export const typescriptConfig = {
|
|
|
218
218
|
'@typescript-eslint/explicit-member-accessibility': 'off',
|
|
219
219
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
220
220
|
'@typescript-eslint/init-declarations': 'off',
|
|
221
|
-
'@typescript-eslint/method-signature-style': ['error', '
|
|
221
|
+
'@typescript-eslint/method-signature-style': ['error', 'property'],
|
|
222
222
|
'@typescript-eslint/no-base-to-string': 'error',
|
|
223
223
|
...configureWrappedCoreRule('no-dupe-class-members'),
|
|
224
224
|
'@typescript-eslint/no-dynamic-delete': ['error'],
|