YDA-5059: add hierarchical keyword selector #1512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Javascript lint" | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install standard and React plugin for ESlint | |
run: | | |
npm install [email protected] --location=global | |
npm install [email protected] --location=global | |
npm install [email protected] --location=global | |
- name: Lint with standard | |
run: | | |
standard | |
- name: Check for webpack bundles produced in development mode | |
run: | | |
if grep -l 'ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").' $(find . -name "*.js") | |
then echo "Error: found a webpack bundle that was produced in development mode (needs to be production mode)" | |
exit 1 | |
fi |