feat: add linting and formatting setup with configs in .config folder
- Add ESLint configuration with TypeScript support - Add Prettier configuration for code formatting - Move all config files to .config/ folder to keep them hidden from Obsidian - Add lint and format scripts to package.json - Add .eslintignore and .prettierignore files - Remove framework-specific configuration - Configure for general JavaScript/TypeScript development
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
export default {
|
||||
overrides: [
|
||||
{
|
||||
files: '**/*.tsx',
|
||||
options: {
|
||||
plugins: ['prettier-plugin-tailwindcss'],
|
||||
},
|
||||
},
|
||||
{
|
||||
excludeFiles: '**/package.json',
|
||||
files: '**/*.json',
|
||||
options: {
|
||||
jsonRecursiveSort: true,
|
||||
plugins: ['prettier-plugin-sort-json'],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: '**/package.json',
|
||||
options: {
|
||||
plugins: ['prettier-plugin-packagejson'],
|
||||
trailingComma: 'none',
|
||||
},
|
||||
},
|
||||
],
|
||||
proseWrap: 'always',
|
||||
quoteProps: 'consistent',
|
||||
semi: false,
|
||||
singleQuote: true,
|
||||
}
|
||||
Reference in New Issue
Block a user