Skip to content

Commit

Permalink
enable eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Apr 6, 2023
1 parent e9193ac commit 602b86f
Show file tree
Hide file tree
Showing 5 changed files with 1,426 additions and 12 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
env: {
browser: true,
es2021: true
},
extends: 'standard-with-typescript',
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ webpack打包生成的js文件位于**dist/extension.js**
- `disableMonitor` 是否积木强制删除复选框来创建监视器, 适用类型为**REPORTER** *(带返回值的积木)*, 如果为真, 则删除变量左处的复选框
5. `docsURI`对应文档链接
每太看懂? 下面展示一个示例
没太看懂? 下面展示一个示例
```typescript
new Extension({
id: "ExampleExtension",
Expand Down
8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default [
{
rules: {
semi: "error",
"prefer-const": "error"
}
}
]
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@
},
"homepage": "https://github.com/zmh-program/turbowarp-ts-plugin#readme",
"devDependencies": {
"@turbowarp/types": "^0.0.7",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"eslint": "^8.37.0",
"eslint-config-standard-with-typescript": "^34.0.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-promise": "^6.0.0",
"ts-loader": "^9.4.2",
"typescript": "^5.0.3",
"webpack": "^5.77.0",
"webpack-cli": "^5.0.1",
"@turbowarp/types": "^0.0.7"
"webpack-cli": "^5.0.1"
}
}
Loading

0 comments on commit 602b86f

Please sign in to comment.