Skip to content

Commit

Permalink
Add tests selection menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
agrojean-ledger committed Nov 22, 2024
1 parent 5ba3ffc commit 09242bb
Show file tree
Hide file tree
Showing 16 changed files with 2,787 additions and 6,141 deletions.
24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ repos:
types_or: [markdown]

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.2.0
rev: v9.15.0
hooks:
- id: eslint
types_or: [javascript, jsx, ts, tsx]
args: ['--config=./.eslintrc.json']
args: ['.', '--config=./eslint.config.js', '--format=stylish']
additional_dependencies: [
'[email protected]'
'[email protected]',
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
'@stylistic/eslint-plugin'
]
39 changes: 39 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import stylistic from "@stylistic/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import tsPlugin from "@typescript-eslint/eslint-plugin";

export default [
{
ignores: ["out", "dist", "**/*.d.ts"],
},
{
files: ["**/*.ts"],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
},
plugins: {
"@typescript-eslint": tsPlugin,
"@stylistic": stylistic,
},
rules: {
"@stylistic/indent": ["error", 2],
"@typescript-eslint/naming-convention": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"@stylistic/semi": ["error", "always"],
"@stylistic/quotes": ["error", "double"],
"semi": "off",
"quotes": "off",
},
},
stylistic.configs.customize({
indent: 2,
semi: true,
quotes: "double",
}),
];
Loading

0 comments on commit 09242bb

Please sign in to comment.