Skip to content

Commit

Permalink
Merge pull request #36 from neilenns/neilenns/issue35
Browse files Browse the repository at this point in the history
Add missing react config to eslint
  • Loading branch information
pierr3 authored May 6, 2024
2 parents 9e58d4f + 582b772 commit 0e3d5d3
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
/* eslint-env node */

module.exports = {
env: { browser: true, es6: true, node: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: true,
tsconfigRootDir: __dirname,
env: { browser: true, es6: true, node: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: true,
tsconfigRootDir: __dirname,
},
settings: {
react: {
version: "detect",
},
ignorePatterns: ["webpack.*.ts", "forge.config.ts", ".eslintrc.cjs", "out/**", "backend/**"],
};
},
ignorePatterns: [
"webpack.*.ts",
"forge.config.ts",
".eslintrc.cjs",
"out/**",
"backend/**",
],
};

0 comments on commit 0e3d5d3

Please sign in to comment.