Skip to content

Commit

Permalink
build: migrate to eslintrc.js
Browse files Browse the repository at this point in the history
This allows us to simplify it and remove duplicities.
  • Loading branch information
no23reason committed Jul 15, 2023
1 parent fa2817d commit 45ef531
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 40 deletions.
31 changes: 31 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const commonExtends = [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
];

module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: commonExtends,
overrides: [
{
files: ["./src/**/*.ts", "./src/**/*.tsx"],
parserOptions: {
project: ["./tsconfig.json"],
},
extends: [
...commonExtends,
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/strict",
],
},
],
settings: {
react: {
version: "detect",
},
},
ignorePatterns: "demo",
};
40 changes: 0 additions & 40 deletions .eslintrc.json

This file was deleted.

0 comments on commit 45ef531

Please sign in to comment.