summaryrefslogtreecommitdiffstats
path: root/.eslintrc.yml
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.yml')
-rw-r--r--.eslintrc.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml
new file mode 100644
index 0000000..01d31ee
--- /dev/null
+++ b/.eslintrc.yml
@@ -0,0 +1,26 @@
+env:
+ browser: true
+ es2021: true
+ node: true
+extends:
+ - 'plugin:react/recommended'
+ - airbnb-typescript
+parser: '@typescript-eslint/parser'
+parserOptions:
+ ecmaFeatures:
+ jsx: true
+ ecmaVersion: 12
+ sourceType: module
+ project: tsconfig.json
+plugins:
+ - react
+ - '@typescript-eslint'
+rules: {
+ "no-use-before-define": "off",
+ "@typescript-eslint/no-use-before-define": ["error"],
+ "react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
+ "import/no-default-export": [2],
+ "import/prefer-default-export": "off",
+ "react/jsx-props-no-spreading": "off",
+ "react/destructuring-assignment": [1, "never"]
+}