Skip to content

Commit cdd1d1a

Browse files
committed
ci(dependencies,linting): moved to eslint, added commitlint
1 parent a66f455 commit cdd1d1a

File tree

6 files changed

+3330
-1058
lines changed

6 files changed

+3330
-1058
lines changed

.eslintrc.js

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
env: {
3+
"jest": true,
4+
"browser": false,
5+
"node": true,
6+
"es2020": true
7+
},
8+
parser: "@typescript-eslint/parser",
9+
extends: [
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended"
12+
],
13+
plugins: [ "@typescript-eslint" ],
14+
rules: {
15+
"no-console": 0,
16+
"semi": [ "error", "never"],
17+
"newline-before-return": 2,
18+
"indent": ["error", 2, { "SwitchCase": 1 }],
19+
"quotes": [ "error", "single", { "allowTemplateLiterals": true } ],
20+
"object-curly-spacing": [ "error", "always" ],
21+
"array-bracket-spacing": [ "error", "always", { "singleValue": false } ],
22+
"arrow-body-style": [ "error", "as-needed" ],
23+
"computed-property-spacing": [ "error", "never" ],
24+
"no-multiple-empty-lines": [ "error", { "max": 1, "maxBOF": 0 } ],
25+
"prefer-arrow-callback": "error",
26+
"func-style": [ "warn", "expression" ],
27+
"no-multi-spaces": [ "error", { "ignoreEOLComments": false } ],
28+
"keyword-spacing": "error",
29+
"@typescript-eslint/semi": ["error", "never"],
30+
"@typescript-eslint/indent": ["error", 2, { "SwitchCase": 1 }],
31+
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
32+
"@typescript-eslint/member-delimiter-style": ["error", { "multiline": { "delimiter": "none" } }],
33+
"@typescript-eslint/interface-name-prefix": [ "off" ],
34+
"@typescript-eslint/camelcase": [ "off" ],
35+
"@typescript-eslint/no-use-before-define": [ "off" ],
36+
"@typescript-eslint/ban-ts-ignore": [ "off" ],
37+
"@typescript-eslint/no-inferrable-types": [ "off" ],
38+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
39+
"@typescript-eslint/no-explicit-any": "error",
40+
"@typescript-eslint/explicit-member-accessibility": "error"
41+
}
42+
};

.prettierrc

-5
This file was deleted.

commitlint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"]
3+
};

0 commit comments

Comments
 (0)