Skip to content

Commit

Permalink
chore(react): migrate to eslint, add prettier (#26633)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Jan 18, 2023
1 parent 2dca54a commit b02190d
Show file tree
Hide file tree
Showing 70 changed files with 4,681 additions and 1,175 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions/build-react/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
path: ./core
filename: CoreBuild.zip
- name: Install React Dependencies
run: npm install --legacy-peer-deps
run: npm ci
shell: bash
working-directory: ./packages/react
- name: Sync
Expand Down
2 changes: 2 additions & 0 deletions packages/react/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/__tests__/
**/components/react-component-lib/
26 changes: 26 additions & 0 deletions packages/react/.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"
}
};
2 changes: 2 additions & 0 deletions packages/react/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ dist
dist-transpiled
*.md
build
proxies.ts
react-component-lib
8 changes: 0 additions & 8 deletions packages/react/.prettierrc.json

This file was deleted.

Loading

0 comments on commit b02190d

Please sign in to comment.