Skip to content

Commit d7e7fcb

Browse files
committed
Lint standalone package
1 parent c5c8bb4 commit d7e7fcb

File tree

3 files changed

+33
-11
lines changed

3 files changed

+33
-11
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ dist
22
node_modules
33
scripts/docs.ts
44
jest.config.js
5-
standalone
65
# test/fixture/invalid

.eslintrc.json

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,49 @@
44
"parserOptions": {
55
"project": "tsconfig.json"
66
},
7-
"plugins": ["@typescript-eslint", "eslint-plugin", "import"],
7+
"plugins": ["@typescript-eslint", "import"],
88
"env": {
99
"node": true
1010
},
1111
"extends": [
1212
"eslint:recommended",
1313
"plugin:@typescript-eslint/recommended",
14-
"plugin:eslint-plugin/recommended",
1514
"plugin:import/recommended",
1615
"plugin:import/typescript"
1716
],
1817
"rules": {
1918
"import/no-unresolved": "off",
2019
"@typescript-eslint/no-explicit-any": "off",
2120
"@typescript-eslint/no-non-null-assertion": "off",
22-
"@typescript-eslint/non-nullable-type-assertion-style": "warn",
23-
"eslint-plugin/meta-property-ordering": "error",
24-
"eslint-plugin/report-message-format": ["error", "^[A-Z\\{'].*\\.$"],
25-
"eslint-plugin/test-case-property-ordering": "error",
26-
"eslint-plugin/require-meta-docs-description": ["error", { "pattern": "^(Enforce|Require|Disallow)" }],
27-
"eslint-plugin/require-meta-docs-url": ["error", { "pattern": "https://github.com/joshwilsonvu/eslint-plugin-solid/blob/main/docs/{{name}}.md" }]
28-
}
21+
"@typescript-eslint/non-nullable-type-assertion-style": "warn"
22+
},
23+
"overrides": [
24+
{
25+
"files": "src/rules/*.ts",
26+
"plugins": ["eslint-plugin"],
27+
"extends": ["plugin:eslint-plugin/recommended"],
28+
"rules": {
29+
"eslint-plugin/meta-property-ordering": "error",
30+
"eslint-plugin/report-message-format": ["error", "^[A-Z\\{'].*\\.$"],
31+
"eslint-plugin/test-case-property-ordering": "error",
32+
"eslint-plugin/require-meta-docs-description": [
33+
"error",
34+
{ "pattern": "^(Enforce|Require|Disallow)" }
35+
],
36+
"eslint-plugin/require-meta-docs-url": [
37+
"error",
38+
{
39+
"pattern": "https://github.com/joshwilsonvu/eslint-plugin-solid/blob/main/docs/{{name}}.md"
40+
}
41+
]
42+
}
43+
},
44+
{
45+
"files": "standalone/**/*.ts",
46+
"env": {
47+
"node": false,
48+
"worker": true
49+
}
50+
}
51+
]
2952
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"prepare": "husky install",
1515
"prepublishOnly": "pnpm build && pnpm lint && prettier --check src && pnpm test:all",
1616
"build": "tsc -p tsconfig.build.json && pnpm run docs",
17-
"lint": "eslint src",
17+
"lint": "eslint .",
1818
"docs": "PARSER=none ts-node --transpile-only scripts/docs.ts",
1919
"test": "jest --runInBand",
2020
"test:ts": "PARSER=ts pnpm test",

0 commit comments

Comments
 (0)