Skip to content

Commit 4d77478

Browse files
committed
chore: update eslintrc
1 parent dc33738 commit 4d77478

File tree

8 files changed

+240
-7
lines changed

8 files changed

+240
-7
lines changed

.eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
module.exports = {
2-
extends: [require.resolve('@3lang3/fabric/dist/eslint')],
2+
root: true,
3+
extends: [require.resolve('@3lang/fabric/dist/eslint')],
4+
overrides: {
5+
parserOptions: {
6+
project: ['./tsconfig.eslint.json', './packages/*/tsconfig.json'],
7+
},
8+
},
39
};

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fabric = require('@3lang3/fabric');
1+
const fabric = require('@3lang/fabric');
22

33
module.exports = {
44
...fabric.prettier,

.stylelintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fabric = require('@3lang3/fabric');
1+
const fabric = require('@3lang/fabric');
22

33
module.exports = {
44
...fabric.stylelint,

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/// <reference types="vite/client" />
22

33
declare module '@@mdoc/site-shared';
4+
declare module 'mdoc-theme-default';

packages/cli/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
"outDir": "./lib",
66
"module": "ESNext",
77
"declaration": true,
8+
"jsx": "preserve",
89
"skipLibCheck": true,
910
"esModuleInterop": true,
1011
"lib": ["esnext", "dom"]
1112
},
12-
"include": ["src/**/*", "docs/src/**/*", "docs/main.jsx"],
13+
"include": ["src/**/*", "docs/*"],
1314
"exclude": ["node_modules"]
1415
}

pnpm-lock.yaml

Lines changed: 214 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.eslint.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// extend your base config to share compilerOptions, etc
3+
"extends": "./tsconfig.base.json",
4+
"compilerOptions": {
5+
// ensure that nobody can accidentally use this config for a build
6+
"noEmit": true
7+
},
8+
"include": [
9+
// whatever paths you intend to lint
10+
"src",
11+
"packages/**/*.ts",
12+
"packages/**/*.tsx"
13+
]
14+
}

0 commit comments

Comments
 (0)