Skip to content

Commit fad2bec

Browse files
rootroot
authored andcommitted
add eslint and add lint: npx eslint
1 parent 422e28c commit fad2bec

File tree

4 files changed

+1869
-47
lines changed

4 files changed

+1869
-47
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ install:
33
brain-games:
44
node bin/brain-games.js
55
publish:
6-
npm publish --dry-run
6+
npm publish --dry-run
7+
lint:
8+
npx eslint

eslint.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import pluginReact from "eslint-plugin-react";
4+
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
{files: ["**/*.{js,mjs,cjs,jsx}"]},
9+
{languageOptions: { globals: globals.browser }},
10+
pluginJs.configs.recommended,
11+
pluginReact.configs.flat.recommended,
12+
];

0 commit comments

Comments
 (0)