File tree 4 files changed +16
-20
lines changed 4 files changed +16
-20
lines changed Original file line number Diff line number Diff line change @@ -78,15 +78,11 @@ jobs:
78
78
- name : Check dependencies
79
79
run : npm run checkDependencies
80
80
81
- # TODO: Uncomment once we are ready to rely on eslint.
82
- # - name: Run linting on TypeScript code
83
- # run: npm run lint
81
+ - name : Run linting on TypeScript code
82
+ run : npm run lint
84
83
85
- - name : Run prettier on TypeScript code
86
- run : npx prettier 'src/**/*.ts*' --check
87
-
88
- - name : Run prettier on JavaScript code
89
- run : npx prettier 'build/**/*.js' --check
84
+ - name : Run formatting on TypeScript code
85
+ run : npm run format-check
90
86
91
87
- name : Use Python ${{env.PYTHON_VERSION}}
92
88
uses : actions/setup-python@v2
Original file line number Diff line number Diff line change @@ -78,15 +78,11 @@ jobs:
78
78
- name : Check dependencies
79
79
run : npm run checkDependencies
80
80
81
- # TODO: Uncomment once we are ready to rely on eslint.
82
- # - name: Run linting on TypeScript code
83
- # run: npm run lint
81
+ - name : Run linting on TypeScript code
82
+ run : npm run lint
84
83
85
- - name : Run prettier on TypeScript code
86
- run : npx prettier 'src/**/*.ts*' --check
87
-
88
- - name : Run prettier on JavaScript code
89
- run : npx prettier 'build/**/*.js' --check
84
+ - name : Run formatting on TypeScript code
85
+ run : npm run format-check
90
86
91
87
- name : Use Python ${{env.PYTHON_VERSION}}
92
88
uses : actions/setup-python@v2
Original file line number Diff line number Diff line change 78
78
- name : Check dependencies
79
79
run : npm run checkDependencies
80
80
81
- # TODO: Uncomment once we are ready to rely on eslint.
82
- # - name: Run linting on TypeScript code
83
- # run: npm run lint
81
+ - name : Run linting on TypeScript code
82
+ run : npm run lint
83
+
84
+ - name : Run formatting on TypeScript code
85
+ run : npm run format-check
84
86
85
87
# ## Non-smoke tests
86
88
tests :
Original file line number Diff line number Diff line change 1977
1977
"testInsiders" : " cross-env VSC_PYTHON_CI_TEST_VSC_CHANNEL=insiders INSTALL_PYLANCE_EXTENSION=true TEST_FILES_SUFFIX=insiders.test CODE_TESTS_WORKSPACE=src/testMultiRootWkspc/smokeTests \" node ./out/test/standardTest.js\" " ,
1978
1978
"lint-staged" : " node gulpfile.js" ,
1979
1979
"lint" : " eslint --ext .ts,.tsx src" ,
1980
- "prettier-fix" : " prettier 'src/**/*.ts*' --write && prettier 'build/**/*.js' --write" ,
1980
+ "lint-fix" : " eslint --fix --ext .ts,.tsx src" ,
1981
+ "format-check" : " prettier 'src/**/*.ts*' --check && prettier 'build/**/*.js' --check" ,
1982
+ "format-fix" : " prettier 'src/**/*.ts*' --write && prettier 'build/**/*.js' --write" ,
1981
1983
"clean" : " gulp clean" ,
1982
1984
"addExtensionDependencies" : " gulp addExtensionDependencies" ,
1983
1985
"updateBuildNumber" : " gulp updateBuildNumber" ,
You can’t perform that action at this time.
0 commit comments