Skip to content

Commit

Permalink
feat: update templates for eslint v9
Browse files Browse the repository at this point in the history
1. use flat config
2. add .npmrc (package-lock=false), just same as eslint repo
3. update required node.js & eslint
  • Loading branch information
aladdin-add committed Apr 18, 2024
1 parent 92a44af commit 903b05a
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 18,285 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock = false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ First and foremost, you must have [Node.js](https://nodejs.org/) and npm install

> **Requirements**
>
> - Node.js ^14.17.0 || ^16.0.0 || >= 18.0.0
> - Node.js ^18.18.0 || ^20.9.0 || >=21.1.0
You must also install Yeoman, if you don't have it installed already. To install Yeoman, you can run this command:

Expand Down
8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use strict";
import eslintConfigESLint from "eslint-config-eslint";

export default [
...eslintConfigESLint,
{files: ["tests/**/*.js"],
languageOptions: { globals: globals.mocha }}
];
Loading

0 comments on commit 903b05a

Please sign in to comment.