Skip to content

Commit 61d8442

Browse files
committed
chore: introduce eslint-plugin-mark
1 parent 2d46c13 commit 61d8442

File tree

5 files changed

+734
-6
lines changed

5 files changed

+734
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
4-
/node_modules
4+
node_modules
55
/.pnp
66
.pnp.js
77

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,14 @@
116116
"budgetPercentIncreaseRed": 10,
117117
"showDetails": true
118118
},
119-
"packageManager": "yarn@1.22.22"
119+
"packageManager": "yarn@1.22.22",
120+
"workspaces": {
121+
"packages": [
122+
"src/content"
123+
],
124+
"nohoist": [
125+
"**/content/**",
126+
"**/content"
127+
]
128+
}
120129
}

src/content/eslint.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import mark from 'eslint-plugin-mark';
2+
3+
export default [
4+
{
5+
...mark.configs.baseGfm,
6+
rules: {
7+
'mark/no-double-spaces': 'error',
8+
},
9+
},
10+
];

src/content/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"private": true,
3+
"name": "content",
4+
"version": "1.0.0",
5+
"scripts": {
6+
"lint": "eslint"
7+
},
8+
"devDependencies": {
9+
"eslint": "9.23.0",
10+
"eslint-plugin-mark": "0.1.0-canary.1"
11+
}
12+
}

0 commit comments

Comments
 (0)