Skip to content

Commit

Permalink
fix: configure linters (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
stifskere authored Mar 25, 2024
1 parent 7a24351 commit 86bf962
Show file tree
Hide file tree
Showing 26 changed files with 6,000 additions and 4,158 deletions.
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dist
node_modules
node_modules
dist
16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],

"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"no-mixed-spaces-and-tabs": "off",
"@typescript-eslint/no-explicit-any": "off"
},

"env": {
"browser": true,
"es2021": true
}
}
40 changes: 40 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": true,
"singleQuote": false,
"arrowParens": "always",
"useTabs": true,
"trailingComma": "none",
"printWidth": 100,
"tabWidth": 4
}
28 changes: 20 additions & 8 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
export default {

extends: ['@commitlint/config-conventional'],
extends: ["@commitlint/config-conventional"],

rules: {
'type-enum': [
"type-enum": [
2,
'always',
['build', 'chore', 'ci', 'docs', 'improvement', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'],
],
},
};
"always",
[
"build",
"chore",
"ci",
"docs",
"improvement",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test"
]
]
}
};
Loading

0 comments on commit 86bf962

Please sign in to comment.