Skip to content

Commit

Permalink
chore(react-router): migrate to eslint, add prettier (#26634)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Jan 18, 2023
1 parent b02190d commit 6d4c52a
Show file tree
Hide file tree
Showing 12 changed files with 5,070 additions and 969 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/actions/build-react-router/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ runs:
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install Dependencies
run: npm install --legacy-peer-deps
shell: bash
working-directory: ./packages/react-router
- uses: ./.github/workflows/actions/download-archive
with:
name: ionic-react
path: ./packages/react
filename: ReactBuild.zip
- uses: ./.github/workflows/actions/download-archive
with:
name: ionic-core
Expand All @@ -26,7 +17,7 @@ runs:
path: ./packages/react
filename: ReactBuild.zip
- name: Install Dependencies
run: npm install --legacy-peer-deps
run: npm ci
shell: bash
working-directory: ./packages/react-router
- name: Sync
Expand Down
26 changes: 26 additions & 0 deletions packages/react-router/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"@ionic/eslint-config/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/ban-types": "off"
}
};
8 changes: 0 additions & 8 deletions packages/react-router/.prettierrc.json

This file was deleted.

0 comments on commit 6d4c52a

Please sign in to comment.