mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-21 05:29:31 -07:00
- 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
74 lines
1.5 KiB
JSON
74 lines
1.5 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"standard-with-typescript",
|
|
"prettier",
|
|
"eslint:recommended",
|
|
"plugin:prettier/recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:solid/typescript"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"prettier",
|
|
"@typescript-eslint",
|
|
"solid"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"project": "./tsconfig.json",
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"prettier/prettier": "error",
|
|
"arrow-body-style": "off",
|
|
"prefer-arrow-callback": "off",
|
|
"import/no-cycle": "error",
|
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
"sort-imports": [
|
|
"error",
|
|
{
|
|
"ignoreCase": false,
|
|
"ignoreDeclarationSort": true,
|
|
"ignoreMemberSort": false,
|
|
"memberSyntaxSortOrder": [
|
|
"none",
|
|
"all",
|
|
"multiple",
|
|
"single"
|
|
],
|
|
"allowSeparatedGroups": true
|
|
}
|
|
],
|
|
"import/no-unresolved": "error",
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"groups": [
|
|
"builtin",
|
|
"external",
|
|
"internal",
|
|
"parent",
|
|
"sibling",
|
|
"index"
|
|
],
|
|
"newlines-between": "always",
|
|
"alphabetize": {
|
|
"order": "asc",
|
|
"caseInsensitive": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"settings": {
|
|
"import/resolver": {
|
|
"typescript": {
|
|
"project": "./tsconfig.json"
|
|
}
|
|
}
|
|
}
|
|
}
|