Skip to content

Commit

Permalink
New lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jan 7, 2024
1 parent 79d735a commit a2ed153
Show file tree
Hide file tree
Showing 4 changed files with 385 additions and 930 deletions.
19 changes: 18 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
module.exports = {
extends: ['react-app', 'plugin:prettier/recommended'],
extends: [
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
settings: {
react: {
version: 'detect',
},
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
rules: {
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unused-vars': [
'warn',
{
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 20.x
- name: Install deps (with cache)
uses: bahmutov/npm-install@v1
- name: Get latest JBrowse
Expand Down
14 changes: 3 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,8 @@
"singleQuote": true,
"trailingComma": "all"
},
"dependencies": {
"jest-environment-jsdom": "^29.6.1",
"regenerator-runtime": "^0.14.1",
"tslib": "^2.3.1"
},
"peerDependencies": {
"@jbrowse/core": "^1.5.2"
"@jbrowse/core": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.16.5",
Expand All @@ -81,21 +76,18 @@
"@types/react": "^18.2.45",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"babel-eslint": "^10.0.0",
"chalk": "^4.0.0",
"cross-env": "^7.0.3",
"cross-var": "^1.1.0",
"cypress": "^13.6.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^5.1.0",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.8",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.6.1",
"mobx": "^6.0.0",
"mobx-react": "^9.1.0",
"mobx-state-tree": "5.4.0",
Expand Down
Loading

0 comments on commit a2ed153

Please sign in to comment.