mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
node: add lint check in workflow
This commit is contained in:
4
.github/workflows/node.yml
vendored
4
.github/workflows/node.yml
vendored
@ -49,6 +49,10 @@ jobs:
|
||||
working-directory: ./bindings/node
|
||||
run: node build.js --all
|
||||
|
||||
- name: Lint TS
|
||||
working-directory: ./bindings/node
|
||||
run: npm run lint-check
|
||||
|
||||
- name: Run JS tests
|
||||
working-directory: ./bindings/node
|
||||
run: npm test
|
||||
|
@ -19,9 +19,8 @@
|
||||
},
|
||||
"plugins": ["@typescript-eslint", "jest", "prettier", "simple-import-sort"],
|
||||
"rules": {
|
||||
"prettier/prettier": "warn",
|
||||
"simple-import-sort/sort": "warn"
|
||||
// "sort-imports": "warn",
|
||||
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }],
|
||||
"simple-import-sort/sort": "error"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
@ -35,8 +34,6 @@
|
||||
"prettier/@typescript-eslint"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-var-requires": "off",
|
||||
"@typescript-eslint/camelcase": "warn",
|
||||
"jsdoc/no-types": "error"
|
||||
}
|
||||
}
|
||||
|
@ -42,6 +42,7 @@
|
||||
"clean-rs": "neon clean",
|
||||
"package": "node-pre-gyp package",
|
||||
"test": "jest",
|
||||
"lint-check": "eslint --ext .js,.ts lib examples",
|
||||
"lint": "eslint --fix --ext .js,.ts lib examples"
|
||||
},
|
||||
"binary": {
|
||||
|
Reference in New Issue
Block a user