Browse Source

init eslint settings

Yuki Takei 2 years ago
parent
commit
e5f43a2f0d
2 changed files with 2 additions and 15 deletions
  1. 0 1
      packages/editor/.eslintignore
  2. 2 14
      packages/editor/.eslintrc.cjs

+ 0 - 1
packages/editor/.eslintignore

@@ -1,3 +1,2 @@
 /dist/**
 /dist/**
 vite-env.d.ts
 vite-env.d.ts
-vite.config.ts

+ 2 - 14
packages/editor/.eslintrc.cjs

@@ -1,25 +1,13 @@
-/* eslint-env node */
-
 module.exports = {
 module.exports = {
   env: { browser: true, es2020: true },
   env: { browser: true, es2020: true },
   extends: [
   extends: [
-    'plugin:@typescript-eslint/recommended-requiring-type-checking',
-    'plugin:react-hooks/recommended',
+    'weseek/react',
   ],
   ],
-  parser: '@typescript-eslint/parser',
-  parserOptions: {
-    ecmaVersion: 'latest',
-    sourceType: 'module',
-    project: true,
-    tsconfigRootDir: __dirname,
-  },
   plugins: ['react-refresh'],
   plugins: ['react-refresh'],
   rules: {
   rules: {
-    'import/no-absolute-path': 'off',
     'react-refresh/only-export-components': [
     'react-refresh/only-export-components': [
       'warn',
       'warn',
       { allowConstantExport: true },
       { allowConstantExport: true },
     ],
     ],
-    '@typescript-eslint/no-non-null-assertion': 'off',
   },
   },
-}
+};