Skip to content

Commit

Permalink
Merge pull request #28 from TogetherCrew/fix/eslint
Browse files Browse the repository at this point in the history
Fix/eslint
  • Loading branch information
mehdi-torabiv authored Jul 10, 2024
2 parents 385fbaf + ccdaf3c commit 6fb8699
Show file tree
Hide file tree
Showing 14 changed files with 371 additions and 208 deletions.
49 changes: 26 additions & 23 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
env: { browser: true, es2020: true },
env: {
browser: true,
es2021: true,
},
extends: [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:react/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh", "react", "prettier"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json', "./tsconfig.app.json"],
},
settings: {
react: {
version: "detect",
},
plugins: ['react', '@typescript-eslint', 'prettier'],
rules: {
'react/react-in-jsx-scope': 0,
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'warn',
"import/prefer-default-export": "off",
"import/order": 'warn',
"import/extensions": 'warn'
},
};
};
6 changes: 6 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
trailingComma: "es5",
tabWidth: 2,
semi: true,
singleQuote: true,
};
13 changes: 0 additions & 13 deletions eslint.config.js

This file was deleted.

Loading

0 comments on commit 6fb8699

Please sign in to comment.