File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "root" : true ,
3+ "env" : {
4+ "browser" : true ,
5+ "es2024" : true ,
6+ "node" : true
7+ },
8+ "extends" : [
9+ " eslint:recommended" ,
10+ " plugin:react/recommended" ,
11+ " plugin:react/jsx-runtime" ,
12+ " plugin:react-hooks/recommended"
13+ ],
14+ "parserOptions" : {
15+ "ecmaVersion" : " latest" ,
16+ "sourceType" : " module"
17+ },
18+ "settings" : {
19+ "react" : {
20+ "version" : " detect"
21+ }
22+ },
23+ "plugins" : [" react-refresh" ],
24+ "rules" : {
25+ "react-refresh/only-export-components" : [
26+ " warn" ,
27+ { "allowConstantExport" : true }
28+ ]
29+ }
30+ }
Original file line number Diff line number Diff line change 1+ name : Lint Code Base
2+ on :
3+ push :
4+ branches :
5+ - " **"
6+ - " !main"
7+ pull_request :
8+ branches :
9+ - " **"
10+
11+ jobs :
12+ lint :
13+ name : Linting
14+ runs-on : ubuntu-22.04
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Node.js
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : 18
23+ cache : " npm"
24+
25+ - name : Install dependencies
26+ run : npm ci
27+
28+ - name : Run ESLint
29+ run : npm run lint
30+
31+ # - name: Run tests
32+ # run: npm run test:run
33+
34+ - name : Cache node modules
35+ uses : actions/cache@v3
36+ with :
37+ path : |
38+ ~/.npm
39+ node_modules
40+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on :
4+ pull_request :
5+ branches : [main]
6+ types : [opened, synchronize]
7+ push :
8+ branches : [main]
9+ jobs :
10+ test :
11+ runs-on : ubuntu-22.04
12+ steps :
13+ - name : checkcout
14+ uses : actions/checkout@v4
15+ - name : install Node
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : ' 18'
19+ - name : install dependencies
20+ run : npm install
21+ - name : execute
22+ run : npm test
23+ lint :
24+ runs-on : ubuntu-22.04
25+ steps :
26+ - name : checkcout
27+ uses : actions/checkout@v4
28+ - name : install Node
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version : ' 18'
32+ - name : install dependencies
33+ run : npm install
34+ - name : execute
35+ run : npm run lint
Original file line number Diff line number Diff line change 11node_modules
2-
2+ .husky
3+ .netlify
4+ .env
Original file line number Diff line number Diff line change 1+ {
2+ "semi": true,
3+ "singleQuote": true,
4+ "tabWidth": 2,
5+ "trailingComma": "es5"
6+ }
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments