Skip to content

Commit

Permalink
chore: migrate flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
fossamagna committed Apr 21, 2024
1 parent cfbdb2b commit cceb04a
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 17 deletions.
8 changes: 0 additions & 8 deletions .eslintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -28,6 +28,7 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run lint
- run: npm test
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.2.3
Expand Down
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const js = require("@eslint/js");
const globals = require("globals");

module.exports = [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.commonjs,
},
},
},
];
36 changes: 29 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Generator of Google Apps Script entry point function",
"main": "index.js",
"scripts": {
"test": "eslint index.js && nyc --reporter=lcovonly --reporter=text-summary tap test/*.test.js"
"lint": "eslint index.js",
"test": "nyc --reporter=lcovonly --reporter=text-summary tap test/*.test.js"
},
"repository": {
"type": "git",
Expand All @@ -21,7 +22,9 @@
"estraverse": "5.3.0"
},
"devDependencies": {
"@eslint/js": "^9.1.1",
"eslint": "9.1.0",
"globals": "^15.0.0",
"nyc": "15.1.0",
"tap": "16.3.10"
}
Expand Down

0 comments on commit cceb04a

Please sign in to comment.