Skip to content

Commit a14dbaf

Browse files
chore: move eslint config to package.json
1 parent 8d8ece6 commit a14dbaf

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

.eslintrc.js

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

package.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,40 @@
5050
],
5151
"prettier": {
5252
"singleQuote": true
53+
},
54+
"eslintConfig": {
55+
"extends": [
56+
"eslint:recommended",
57+
"plugin:@typescript-eslint/eslint-recommended",
58+
"plugin:@typescript-eslint/recommended",
59+
"plugin:prettier/recommended"
60+
],
61+
"parser": "@typescript-eslint/parser",
62+
"plugins": ["@typescript-eslint"],
63+
"rules": {
64+
"@typescript-eslint/naming-convention": [
65+
"error",
66+
{
67+
"selector": "interface",
68+
"format": ["PascalCase"],
69+
"custom": {
70+
"regex": "^I[A-Z]",
71+
"match": true
72+
}
73+
}
74+
],
75+
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none" }],
76+
"@typescript-eslint/no-explicit-any": "off",
77+
"@typescript-eslint/no-namespace": "off",
78+
"@typescript-eslint/no-use-before-define": "off",
79+
"@typescript-eslint/quotes": [
80+
"error",
81+
"single",
82+
{ "avoidEscape": true, "allowTemplateLiterals": false }
83+
],
84+
"curly": ["error", "all"],
85+
"eqeqeq": "error",
86+
"prefer-arrow-callback": "error"
87+
}
5388
}
5489
}

0 commit comments

Comments
 (0)