mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-18 12:09:29 -07:00
- Add "eslint:recommended" and "plugin:prettier/recommended" to the "extends" array to include recommended rules and prettier plugin. - Add "plugin:@typescript-eslint/recommended" to the "extends" array to include recommended rules for TypeScript. - Add "@typescript-eslint" and "prettier" to the "plugins" array to enable TypeScript and prettier linting. - Update "parserOptions" to use the latest ECMAScript version and specify the project path. - Add "sort-imports" rule to sort imports in a specific order and ignore case. - Add "import/no-unresolved" rule to enforce resolving of imports. - Add "import/order" rule to enforce a specific order for imports. - Update "settings" to specify the TypeScript project path for import resolver. chore(prettier): update prettier configuration to include additional plugins - Add "prettier-plugin-organize-imports" to the "plugins" array to enable organizing imports. - Update "overrides" to include "*.html" files for prettier formatting. feat(package.json): add "swiper" dependency - Add "swiper" dependency with version "^11.0.3" to the "dependencies" section.
55 lines
1.2 KiB
JSON
55 lines
1.2 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"standard-with-typescript",
|
|
"prettier",
|
|
"eslint:recommended",
|
|
"plugin:prettier/recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"overrides": [],
|
|
"plugins": ["prettier", "@typescript-eslint"],
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"project": "./tsconfig.json",
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"prettier/prettier": "error",
|
|
"arrow-body-style": "off",
|
|
"prefer-arrow-callback": "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"
|
|
}
|
|
}
|
|
}
|
|
}
|