Open bryanpizzillo opened 3 years ago
ESTIMATE 5
Replace all linter plugins with https://github.com/NCIOCPL/cgov-standards-xt/tree/develop/packages/eslint-config-react. This should roughly be:
.npmrc
@nciocpl:registry=https://npm.pkg.github.com
npm login --scope=@nciocpl --registry=https://npm.pkg.github.com
npm install --save eslint-config-airbnb eslint-config-prettier eslint-config-react-app eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier
npm install --save-dev @nciocpl/eslint-config-react
.github/workflows/workflow.yml
## This installs the correct node version - name: Use Node.js 12.x uses: actions/setup-node@v1 with: node-version: 12.x ## Restore cache - name: Restore npm cache uses: actions/cache@v1 with: path: ~/.npm key: cache-${{ hashFiles('package-lock.json') }} ## Install using CI - name: Install Dependencies run: npm ci env: CI: true
## Setup node and npm caching. - name: Setup Node uses: actions/setup-node@v2 with: node-version: '12' cache: 'npm' registry-url: https://npm.pkg.github.com scope: '@nciocpl' ## Install using CI - name: Install Dependencies run: npm ci env: CI: true NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Looks like a few things were missed in finishing this ticket requiring us to re-open.
Please check the steps above:
Issue description
Replace all linter plugins with https://github.com/NCIOCPL/cgov-standards-xt/tree/develop/packages/eslint-config-react. This should roughly be:
.npmrc
file at the root withnpm login --scope=@nciocpl --registry=https://npm.pkg.github.com
npm install --save-dev @nciocpl/eslint-config-react
.github/workflows/workflow.yml
to: