Skip to content

Commit

Permalink
feat: move files from the playground dir in the markuplint repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kagankan committed Aug 25, 2024
1 parent a639133 commit 5846d25
Show file tree
Hide file tree
Showing 91 changed files with 12,658 additions and 0 deletions.
81 changes: 81 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"root": true,
"extends": [
"@markuplint-dev/eslint-config",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:testing-library/react"
],
"plugins": ["react", "react-hooks", "react-refresh", "testing-library", "vitest"],
"env": {
"browser": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": []
}
},
"rules": {
"@typescript-eslint/no-unused-vars": [2, { "argsIgnorePattern": "^_", "ignoreRestSiblings": true }],
"@typescript-eslint/prefer-readonly-parameter-types": [
1,
{
"allow": [
{ "from": "lib", "name": "URL" },
{ "from": "package", "package": "json-schema", "name": "JSONSchema7" },
{ "from": "package", "package": "json-schema", "name": "JSONSchema7Definition" }
],
"checkParameterProperties": false,
"ignoreInferredTypes": true
}
],
"react/display-name": 0,
"react/prop-types": 0,
"react-refresh/only-export-components": "warn"
},
"globals": {
"React": true,
"JSX": true
},
"overrides": [
{
"files": ["./*.js"],
"rules": {
"@typescript-eslint/no-var-requires": 0
}
},
{
"files": ["./*.mjs"],
"rules": {
"import/no-named-as-default-member": 0
}
},
{
"files": ["./**/*.tsx"],
"rules": {
"unicorn/filename-case": 0
}
},
{
"files": ["./**/*.spec.ts", "./**/*.spec.tsx"],
"rules": {
"testing-library/prefer-user-event": 2,
"testing-library/no-manual-cleanup": 0
}
},
{
"files": ["./vitest.config.ts"],
"rules": {
"import/no-default-export": 0
}
}
]
}
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
21 changes: 21 additions & 0 deletions .markuplintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"excludeFiles": ["./src/examples/**/*"],
"extends": ["markuplint:recommended-react"],
"parser": {
"\\.tsx$": "@markuplint/jsx-parser"
},
"specs": {
"\\.tsx$": "@markuplint/react-spec"
},
"rules": {
"heading-levels": false
},
"nodeRules": [
{
"selector": "option",
"rules": {
"permitted-contents": false
}
}
]
}
15 changes: 15 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import config from '../.prettierrc.mjs';

export default {
...config,
plugins: ['prettier-plugin-tailwindcss'],
overrides: [
{
files: ['./src/examples/files/**'],
options: {
tabWidth: 2,
useTabs: false,
},
},
],
};
Binary file modified README.md
Binary file not shown.
Loading

0 comments on commit 5846d25

Please sign in to comment.