Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Oct 30, 2023
1 parent a2e3b32 commit 6fb6696
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
5 changes: 5 additions & 0 deletions docs/code-linting/react/content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
```json name=.eslintrc.json
{
"extends": ["@master/css"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js"],
Expand Down
5 changes: 5 additions & 0 deletions docs/code-linting/vuejs/content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
```json name=.eslintrc.json
{
"extends": ["@master/css"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"overrides": [
{
"files": ["*.vue"],
Expand Down
15 changes: 7 additions & 8 deletions docs/eslint/content.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import defaultConfigurationScript from '../../packages/eslint-config/index.js?text'
import defaultSettings from '../../packages/eslint-plugin/src/settings.ts'
import { settings, configs } from '@master/eslint-plugin-css'

## Usage [sr-only]

Expand All @@ -8,9 +7,9 @@ import defaultSettings from '../../packages/eslint-plugin/src/settings.ts'
"extends": ["@master/css"]
}
```
The `@master/eslint-config-css` package default configuration:
The extended recommended configuration:
<Code lang="js">
{defaultConfigurationScript}
{JSON.stringify(configs.recommended, null, 4)}
</Code>

---
Expand Down Expand Up @@ -65,7 +64,7 @@ Specify the names of the callee to check its arguments.
{`
{
"settings": {
"calleeMatching": "${defaultSettings.calleeMatching}"
"calleeMatching": "${settings.calleeMatching}"
}
}
`}
Expand All @@ -77,7 +76,7 @@ Specify the attribute/property to check classes.
{`
{
"settings": {
"classMatching": "${defaultSettings.classMatching}"
"classMatching": "${settings.classMatching}"
}
}
`}
Expand All @@ -89,7 +88,7 @@ Specifies object keys to ignore checking.
{`
{
"settings": {
"ignoredKeys": ${JSON.stringify(defaultSettings.ignoredKeys)}
"ignoredKeys": ${JSON.stringify(settings.ignoredKeys)}
}
}
`}
Expand All @@ -101,7 +100,7 @@ Specify a custom Master CSS configuration or path.
{`
{
"settings": {
"config": "${defaultSettings.config}"
"config": "${settings.config}"
}
}
`}
Expand Down

0 comments on commit 6fb6696

Please sign in to comment.