Skip to content

Commit

Permalink
chore: formatting with new prettier configf (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc authored Nov 17, 2023
1 parent a880b38 commit 3b6fd01
Show file tree
Hide file tree
Showing 1,071 changed files with 29,932 additions and 29,635 deletions.
128 changes: 64 additions & 64 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"env": {
"jest": true
},
"rules": {}
},
{
"files": "*.json",
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"buildTargets": ["build"],
"checkMissingDependencies": true,
"checkObsoleteDependencies": true,
"checkVersionMismatches": true,
"ignoredDependencies": [
"jest-preset-angular",
"jest-axe",
"@testing-library/jest-dom",
"rxjs",
"@spartan-ng/ui-icon-helm",
"@spartan-ng/ui-button-helm",
"@spartan-ng/ui-avatar-brain"
]
}
]
}
}
]
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"env": {
"jest": true
},
"rules": {}
},
{
"files": "*.json",
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"buildTargets": ["build"],
"checkMissingDependencies": true,
"checkObsoleteDependencies": true,
"checkVersionMismatches": true,
"ignoredDependencies": [
"jest-preset-angular",
"jest-axe",
"@testing-library/jest-dom",
"rxjs",
"@spartan-ng/ui-icon-helm",
"@spartan-ng/ui-button-helm",
"@spartan-ng/ui-avatar-brain"
]
}
]
}
}
]
}
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"*.{js,ts,css,scss,html,json,md,yml}": "prettier --write"
"*.{js,ts,css,scss,html,json,md,yml}": "prettier --write"
}
12 changes: 6 additions & 6 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"printWidth": 120,
"singleQuote": true,
"useTabs": false,
"tabWidth": 2,
"semi": true,
"bracketSpacing": true
"printWidth": 120,
"singleQuote": true,
"useTabs": true,
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "ignore",
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss"]
}
12 changes: 6 additions & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"recommendations": [
"nrwl.angular-console",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint"
]
"recommendations": [
"nrwl.angular-console",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint"
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"eslint.validate": ["json"]
"eslint.validate": ["json"]
}
64 changes: 32 additions & 32 deletions apps/app/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
"rules": {
"@angular-eslint/no-host-metadata-property": 0,
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "spartan",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "spartan",
"style": "kebab-case"
}
]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@nx/angular-template"],
"rules": {}
}
]
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts"],
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
"rules": {
"@angular-eslint/no-host-metadata-property": 0,
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "spartan",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "spartan",
"style": "kebab-case"
}
]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@nx/angular-template"],
"rules": {}
}
]
}
86 changes: 43 additions & 43 deletions apps/app/index.html
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
<!DOCTYPE html>
<!doctype html>
<html class="dark h-full" lang="en">
<head>
<meta charset="utf-8" />
<title>spartan - Cutting-edge tools powering Angular full-stack development</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/assets/spartan.svg" />
<link rel="stylesheet" href="/src/styles.css" />
<script>
if (localStorage.theme !== 'default') {
if (document && document.body) {
document.body.classList.add('theme-' + localStorage.theme);
}
}
if (localStorage.darkMode === 'dark') {
if (document && document.documentElement) {
document.documentElement.classList.add('dark');
}
} else if (localStorage.darkMode === 'light') {
if (document && document.documentElement) {
document.documentElement.classList.remove('dark');
localStorage.setItem('darkMode', 'light');
}
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
localStorage.setItem('darkMode', 'system');
if (document && document.documentElement) {
document.documentElement.classList.add('dark');
}
} else {
if (document && document.documentElement) {
document.documentElement.classList.remove('dark');
}
}
</script>
</head>
<body class="h-full bg-background text-foreground">
<script>
if (localStorage.theme !== 'default' && document && document.body)
document.body.classList.add('theme-' + localStorage.theme);
</script>
<spartan-root></spartan-root>
<script type="module" src="/src/main.ts"></script>
</body>
<head>
<meta charset="utf-8" />
<title>spartan - Cutting-edge tools powering Angular full-stack development</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/assets/spartan.svg" />
<link rel="stylesheet" href="/src/styles.css" />
<script>
if (localStorage.theme !== 'default') {
if (document && document.body) {
document.body.classList.add('theme-' + localStorage.theme);
}
}
if (localStorage.darkMode === 'dark') {
if (document && document.documentElement) {
document.documentElement.classList.add('dark');
}
} else if (localStorage.darkMode === 'light') {
if (document && document.documentElement) {
document.documentElement.classList.remove('dark');
localStorage.setItem('darkMode', 'light');
}
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
localStorage.setItem('darkMode', 'system');
if (document && document.documentElement) {
document.documentElement.classList.add('dark');
}
} else {
if (document && document.documentElement) {
document.documentElement.classList.remove('dark');
}
}
</script>
</head>
<body class="bg-background text-foreground h-full">
<script>
if (localStorage.theme !== 'default' && document && document.body)
document.body.classList.add('theme-' + localStorage.theme);
</script>
<spartan-root></spartan-root>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
12 changes: 6 additions & 6 deletions apps/app/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const { join } = require('path');

module.exports = {
plugins: {
tailwindcss: {
config: join(__dirname, 'tailwind.config.js'),
},
autoprefixer: {},
},
plugins: {
tailwindcss: {
config: join(__dirname, 'tailwind.config.js'),
},
autoprefixer: {},
},
};
Loading

1 comment on commit 3b6fd01

@vercel
Copy link

@vercel vercel bot commented on 3b6fd01 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

spartan – ./

spartan-git-main-goetzrobin.vercel.app
spartan-goetzrobin.vercel.app
www.spartan.ng
spartan.ng

Please sign in to comment.