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
{ | |
"npm.packageManager": "pnpm", | |
"files.autoSave": "afterDelay", | |
"debug.javascript.autoAttachFilter": "disabled", /* pour les etiquettes à la con */ | |
"debug.javascript.codelens.npmScripts": "never", | |
"editor.fontLigatures": true, | |
"[html]": { | |
"editor.defaultFormatter": "vscode.html-language-features" | |
}, | |
"terminal.integrated.defaultProfile.linux": "zsh", |
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
/* responsive rules to add to the css.json file to enable fast responsive emet */ | |
"Large Screen":{ | |
"prefix": "responsiveRetina", | |
"body": ["@media (min-width: 1281px){\r\r.$1{$2}\r\r}"], | |
"description": "Responsive Desktop " | |
}, | |
"Laptop":{ |
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
export async function jsonFetch<T>( | |
url: string, | |
options: RequestInit = {} | |
): Promise<T> { | |
// Set the default headers correctly | |
const headers: HeadersInit = new Headers(options.headers); | |
headers.set('Accept', 'application/json'); | |
headers.set('Content-Type', 'application/json'); | |
return fetch(url, { |
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
const corsHeaders = { | |
'Access-Control-Allow-Origin': '*', | |
'Access-Control-Allow-Methods': 'GET,HEAD,POST,OPTIONS', | |
'Access-Control-Allow-Credentials': true, | |
}; | |
const ALLOWED_HOSTS = [ | |
// Put your allowed cors hosts here | |
// By default localhost is allowed | |
// Your fetch should have a `mode: cors` enabled for it to work |
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
[Desktop Entry] | |
Comment=Restart Plasma Shell and KWin | |
Exec=kwin_x11 --replace; plasmashell --replace | |
GenericName=Restart Plasma Shell and KWin | |
Icon=chronometer-reset | |
Name=Restart Plasma Shell and Kwin | |
NoDisplay=false | |
Path[$e]= | |
StartupNotify=true | |
Terminal=0 |
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
module.exports = { | |
extends: [ | |
'stylelint-config-html', | |
'@tinkoff/stylelint-config', | |
'stylelint-config-standard-scss' | |
], | |
plugins: ['stylelint-scss', 'stylelint-csstree-validator'], | |
overrides: [ | |
{ | |
files: ['**/*.{astro,html}'], |
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
[user] | |
name = Pavan Kumar Sunkara | |
email = pavan.sss1991@gmail.com | |
username = pksunkara | |
[init] | |
defaultBranch = master | |
[core] | |
editor = nvim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
pager = delta |
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
const mode = process.env.NODE_ENV; | |
const dev = mode === "development"; | |
const postcssMediaRanges = require("postcss-media-minmax"); | |
const postcssImport = require("postcss-import"); | |
// const OpenProps = require('open-props') | |
const cssnano = require("cssnano"); | |
module.exports = { | |
plugins: [ |
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
{ | |
"env": { | |
"browser": true, | |
"es2021": true, | |
"node": true | |
}, | |
"extends": [ | |
"plugin:astro/recommended", | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended" |
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
module.exports = { | |
// ... | |
extends: [ | |
// ... | |
'plugin:astro/recommended', | |
'@tinkoff/eslint-config/app', | |
], | |
// ...P | |
overrides: [ | |
{ |
OlderNewer