Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .eslintrc.cjs

This file was deleted.

33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { defineConfig } from "eslint/config";
import globals from "globals";
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier/flat";
import vitest from "@vitest/eslint-plugin";

export default defineConfig([
eslintConfigPrettier,
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.es2020,
...globals.vitest,
},
ecmaVersion: 12,
},
rules: {
"no-console": "off",
},
},
{
files: ["tests/**"],
plugins: {
vitest,
},
rules: {
...vitest.configs.recommended.rules,
"vitest/no-conditional-expect": "off",
},
},
]);
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// eslint-disable-next-line import/extensions

import cli from "./lib/cli.js";

cli(process.argv.slice(2)).catch(console.error);
4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

3 changes: 1 addition & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const onLoad = async (targetDir, version, argv) => {
`${targetDir.replace(/\\/g, "/")}/**/.npmignore`,
);
await Promise.all(
// eslint-disable-next-line arrow-body-style
npmIgnoreFiles.map((fileName) => {
return fs.rename(
fileName,
Expand Down Expand Up @@ -86,7 +85,7 @@ const onLoad = async (targetDir, version, argv) => {
type: "input",
name: "customLang",
message: "Enter custom language code",
// eslint-disable-next-line

when: ({ langChoice }) => !argv.lang && langChoice === langListOut[1],
},
{
Expand Down
Loading