Skip to content

Commit 933f87b

Browse files
committed
chore: introduce eslint-plugin-mark
1 parent 2d46c13 commit 933f87b

File tree

5 files changed

+729
-6
lines changed

5 files changed

+729
-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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,8 @@
116116
"budgetPercentIncreaseRed": 10,
117117
"showDetails": true
118118
},
119-
"packageManager": "yarn@1.22.22"
119+
"packageManager": "yarn@1.22.22",
120+
"workspaces": [
121+
"src/content"
122+
]
120123
}

src/content/eslint.config.mjs

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

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)