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