mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-21 21:49:31 -07:00
feat: update ESLint config for TypeScript and Solid integration
- Add `plugin:solid/typescript` to the ESLint config - Add `prettier`, `@typescript-eslint`, and `solid` plugins to the ESLint config - Remove the `overrides` and `plugins` properties from the ESLint config - Modify the `memberSyntaxSortOrder` property in the ESLint config
This commit is contained in:
@@ -8,10 +8,15 @@
|
|||||||
"prettier",
|
"prettier",
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:prettier/recommended",
|
"plugin:prettier/recommended",
|
||||||
"plugin:@typescript-eslint/recommended"
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
"plugin:solid/typescript"
|
||||||
|
],
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"plugins": [
|
||||||
|
"prettier",
|
||||||
|
"@typescript-eslint",
|
||||||
|
"solid"
|
||||||
],
|
],
|
||||||
"overrides": [],
|
|
||||||
"plugins": ["prettier", "@typescript-eslint"],
|
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": "latest",
|
"ecmaVersion": "latest",
|
||||||
"project": "./tsconfig.json",
|
"project": "./tsconfig.json",
|
||||||
@@ -29,7 +34,12 @@
|
|||||||
"ignoreCase": false,
|
"ignoreCase": false,
|
||||||
"ignoreDeclarationSort": true,
|
"ignoreDeclarationSort": true,
|
||||||
"ignoreMemberSort": false,
|
"ignoreMemberSort": false,
|
||||||
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"],
|
"memberSyntaxSortOrder": [
|
||||||
|
"none",
|
||||||
|
"all",
|
||||||
|
"multiple",
|
||||||
|
"single"
|
||||||
|
],
|
||||||
"allowSeparatedGroups": true
|
"allowSeparatedGroups": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -37,7 +47,14 @@
|
|||||||
"import/order": [
|
"import/order": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
|
"groups": [
|
||||||
|
"builtin",
|
||||||
|
"external",
|
||||||
|
"internal",
|
||||||
|
"parent",
|
||||||
|
"sibling",
|
||||||
|
"index"
|
||||||
|
],
|
||||||
"newlines-between": "always",
|
"newlines-between": "always",
|
||||||
"alphabetize": {
|
"alphabetize": {
|
||||||
"order": "asc",
|
"order": "asc",
|
||||||
|
|||||||
Reference in New Issue
Block a user