-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move import sorting to prettier (Import sorting alg. has changed) - Remove unused dependencies - Replace `.eslintrs.js` with `eslint.config.mjs`
- Loading branch information
1 parent
964ae6a
commit e51c75c
Showing
7 changed files
with
5,122 additions
and
5,626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,11 +160,9 @@ repos: | |
- '@angular-eslint/[email protected]' | ||
- '@angular-eslint/[email protected]' | ||
- 'eslint-config-prettier@^9.1.0' | ||
- 'eslint-plugin-import@^2.29.1' | ||
- '@typescript-eslint/eslint-plugin@^7.17.0' | ||
- '@typescript-eslint/parser@^7.17.0' | ||
- 'eslint-plugin-unused-imports@^3.2.0' | ||
- 'eslint-plugin-deprecation@^3.0.0' | ||
- 'eslint-plugin-tailwindcss@^3.17.4' | ||
- 'eslint-plugin-storybook@^0.8.0' | ||
args: ['--fix'] | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import unusedImports from "eslint-plugin-unused-imports"; | ||
import js from "@eslint/js"; | ||
import ts from "typescript-eslint"; | ||
import tailwind from "eslint-plugin-tailwindcss"; | ||
|
||
export default [ | ||
{ ignores: ["dist", "tmp", "out-tsc", "**/*.spec.ts"] }, | ||
js.configs.recommended, | ||
...ts.configs.recommended, | ||
{ | ||
rules: { | ||
"sort-imports": ["error"], | ||
}, | ||
}, | ||
...tailwind.configs["flat/recommended"], | ||
{ | ||
rules: { | ||
"no-console": ["error", { allow: ["error"] }], | ||
}, | ||
}, | ||
{ | ||
settings: { | ||
tailwindcss: { | ||
config: "frontend/tailwind.config.js", | ||
cssFiles: [ | ||
"frontend/**/*.css", | ||
"!**/node_modules", | ||
"!**/.*", | ||
"!**/dist", | ||
"!**/build", | ||
], | ||
}, | ||
}, | ||
}, | ||
{ | ||
plugins: { | ||
"unused-imports": unusedImports, | ||
}, | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^_", | ||
}, | ||
], | ||
"unused-imports/no-unused-imports": "error", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.