@mimica/eslint-config-typescript 1.0.0
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/index.js +62 -0
- package/package.json +38 -0
package/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
extends: [
|
|
3
|
+
"@mimica/eslint-config",
|
|
4
|
+
"plugin:@typescript-eslint/strict-type-checked",
|
|
5
|
+
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
6
|
+
"plugin:import/typescript",
|
|
7
|
+
],
|
|
8
|
+
parser: "@typescript-eslint/parser",
|
|
9
|
+
rules: {
|
|
10
|
+
"default-param-last": 0, // TODO: typescript one already enabled
|
|
11
|
+
"no-shadow": 0, // The TS one is enabled
|
|
12
|
+
"no-unused-vars": 0, // The TS one is enabled
|
|
13
|
+
"no-use-before-define": 0, // The TS one is enabled
|
|
14
|
+
|
|
15
|
+
"@typescript-eslint/default-param-last": 2,
|
|
16
|
+
"@typescript-eslint/explicit-module-boundary-types": 0,
|
|
17
|
+
"@typescript-eslint/consistent-type-imports": [
|
|
18
|
+
2,
|
|
19
|
+
{
|
|
20
|
+
fixStyle: "inline-type-imports",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
// "@typescript-eslint/member-delimiter-style": [
|
|
24
|
+
// 2,
|
|
25
|
+
// {
|
|
26
|
+
// multiline: {
|
|
27
|
+
// delimiter: "comma",
|
|
28
|
+
// requireLast: true,
|
|
29
|
+
// },
|
|
30
|
+
// singleline: {
|
|
31
|
+
// delimiter: "comma",
|
|
32
|
+
// requireLast: false,
|
|
33
|
+
// },
|
|
34
|
+
// },
|
|
35
|
+
// ],
|
|
36
|
+
"@typescript-eslint/method-signature-style": 2,
|
|
37
|
+
"@typescript-eslint/no-confusing-void-expression": 0, // TODO: enable this and fix errors
|
|
38
|
+
"@typescript-eslint/no-floating-promises": 0, // TODO: enable this and fix errors
|
|
39
|
+
"@typescript-eslint/no-misused-promises": 0,
|
|
40
|
+
"@typescript-eslint/no-shadow": 2,
|
|
41
|
+
"@typescript-eslint/no-unnecessary-condition": 0, // TODO: enable this and fix errors
|
|
42
|
+
"@typescript-eslint/no-unsafe-argument": 0,
|
|
43
|
+
"@typescript-eslint/no-unsafe-assignment": 0,
|
|
44
|
+
"@typescript-eslint/no-unsafe-call": 0,
|
|
45
|
+
"@typescript-eslint/no-unsafe-member-access": 0,
|
|
46
|
+
"@typescript-eslint/no-unsafe-return": 0,
|
|
47
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
48
|
+
2,
|
|
49
|
+
{
|
|
50
|
+
ignoreConditionalTests: true,
|
|
51
|
+
ignorePrimitives: {
|
|
52
|
+
boolean: true,
|
|
53
|
+
bigint: true,
|
|
54
|
+
number: true,
|
|
55
|
+
string: true,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
"@typescript-eslint/prefer-readonly": 2,
|
|
60
|
+
"@typescript-eslint/restrict-template-expressions": 0,
|
|
61
|
+
},
|
|
62
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mimica/eslint-config-typescript",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Mimica eslint config",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": "^18.14.2",
|
|
8
|
+
"npm": "^9.5.0"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "exit 0",
|
|
12
|
+
"prepublishOnly": "npm run lint-prettier",
|
|
13
|
+
"lint-prettier": "prettier --cache --check \"**/*.{css,js,mjs,jsx,ts,tsx,json,scss}\"",
|
|
14
|
+
"lint-prettier-fix": "prettier --cache --write \"**/*.{css,js,mjs,jsx,ts,tsx,json,scss}\""
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/mimica/eslint-config.git"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"eslint",
|
|
22
|
+
"config"
|
|
23
|
+
],
|
|
24
|
+
"author": "Anton Veselev",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/mimica/eslint-config/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/mimica/eslint-config#readme",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@mimica/eslint-config": "^1.0.0",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
33
|
+
"@typescript-eslint/parser": "^6.9.1"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"prettier": "^3.0.3"
|
|
37
|
+
}
|
|
38
|
+
}
|