Skip to content

Commit a9d5ec0

Browse files
committed
refactor: eslint-config > configs-eslint-ts
1 parent f725d27 commit a9d5ec0

File tree

10 files changed

+78
-49
lines changed

10 files changed

+78
-49
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@muravjev/eslint-config');
1+
module.exports = require('@muravjev/configs-eslint-ts');

packages/eslint-config/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/eslint-config/index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/eslint-config/package.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/eslint-config/CHANGELOG.md renamed to packages/eslint-ts/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# @muravjev/eslint-config
1+
# @muravjev/configs-eslint-ts
22

33
## 0.3.2
44

55
### Patch Changes
66

7-
- 5067c33: Review peer and dev dependencies
7+
- Review peer and dev dependencies
88

99
## 0.3.1
1010

1111
### Patch Changes
1212

13-
- 59c55f1: Fix peer dependencies
13+
- Fix peer dependencies
1414

1515
## 0.3.0
1616

File renamed without changes.

packages/eslint-ts/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Shared eslint config for monorepo (ts) and lib (ts) packages
2+
3+
This is part of a [@muravjev/configs](https://github.com/muravjev/configs) monorepo.
4+
5+
Refer integration guide [here](../README.md#eslint).

packages/eslint-ts/index.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: ['@typescript-eslint', 'log-filenames', 'prettier'],
5+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
6+
rules: {
7+
'@typescript-eslint/no-empty-interface': 'off',
8+
'@typescript-eslint/no-explicit-any': 'off',
9+
'@typescript-eslint/no-namespace': 'off',
10+
'@typescript-eslint/no-non-null-assertion': 'off',
11+
'@typescript-eslint/no-var-requires': 'off',
12+
'@typescript-eslint/ban-types': [
13+
'error',
14+
{
15+
extendDefaults: true,
16+
types: {
17+
'{}': false
18+
}
19+
}
20+
]
21+
},
22+
env: {
23+
node: true,
24+
jest: true
25+
},
26+
parserOptions: {
27+
ecmaVersion: 'latest'
28+
}
29+
};

packages/eslint-ts/package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "@muravjev/configs-eslint-ts",
3+
"version": "0.3.2",
4+
"keywords": [
5+
"muravjev",
6+
"configs",
7+
"pnpm",
8+
"eslint"
9+
],
10+
"description": "Shared eslint config for monorepo (ts) and lib (ts) packages",
11+
"author": "Sergey Muravjev <[email protected]> (http://github.com/muravjev)",
12+
"license": "MIT",
13+
"publishConfig": {
14+
"access": "public"
15+
},
16+
"repository": {
17+
"url": "https://github.com/muravjev/configs",
18+
"type": "git",
19+
"directory": "packages/eslint-ts"
20+
},
21+
"homepage": "https://github.com/muravjev/configs#readme",
22+
"bugs": {
23+
"url": "https://github.com/muravjev/configs/issues"
24+
},
25+
"main": "index.js",
26+
"devDependencies": {
27+
"@typescript-eslint/eslint-plugin": "^5.40.0",
28+
"@typescript-eslint/parser": "^5.40.0",
29+
"eslint-config-prettier": "^8.5.0",
30+
"eslint-plugin-log-filenames": "^1.0.6",
31+
"eslint-plugin-prettier": "^4.2.1"
32+
},
33+
"peerDependencies": {
34+
"eslint": "8.25.0"
35+
},
36+
"dependencies": {
37+
"eslint": "8.25.0"
38+
}
39+
}

packages/prettier/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Shared prettier config
22

3-
This is part of a [@muravjev/games](https://github.com/muravjev/games) monorepo.
3+
This is part of a [@muravjev/configs](https://github.com/muravjev/configs) monorepo.
44

55
Refer integration guide [here](../README.md#prettier).

0 commit comments

Comments
 (0)