Skip to content

Commit

Permalink
Add eslint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramirisu committed Jan 25, 2024
1 parent 436377e commit c46cc84
Show file tree
Hide file tree
Showing 12 changed files with 2,408 additions and 131 deletions.
32 changes: 32 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"env": {
"browser": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"react/prop-types": "off"
},
"overrides": [
{
"files": [
"src/**/*.jsx"
]
}
],
"settings": {
"react": {
"version": "detect"
}
}
}
5 changes: 3 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run test --if-present
- run: npx eslint ./src/
- run: npm run build
- run: npm run test
Loading

0 comments on commit c46cc84

Please sign in to comment.