📜  javascript linting - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:37.582000             🧑  作者: Mango

代码示例1
// alternative linting for javascript developer using standard zero configuration follow this step by step
 
1.install standard to development mode - npm i standard -D or install standard to global - npm i standard -g
2.install standard extension for vscode
3.add this configuration to vscode json config
  "standard.enable": true,
  "standard.run": "onSave",
  "standard.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
  "standard.autoFixOnSave": true,
  "standard.engine": "standard",
4. enjoy linting is active