mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: remove babel
This commit is contained in:
1 parent
ff943b620e
commit
c7c70a6abb
23 files changed
+466
-606
No files matched your search
@@ -3,8 +3,8 @@ const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: '@babel/eslint-parser',
|
||||
plugins: ['babel', 'react'],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['@typescript-eslint', 'react'],
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
@@ -14,15 +14,14 @@ module.exports = {
|
||||
extends: ['airbnb'],
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 7,
|
||||
ecmaVersion: 2020,
|
||||
ecmaFeatures: {
|
||||
impliedStrict: true,
|
||||
experimentalObjectRestSpread: true,
|
||||
jsx: true,
|
||||
defaultParams: true,
|
||||
legacyDecorators: true,
|
||||
},
|
||||
babelOptions: {
|
||||
configFile: `${__dirname}/babel.config.js`,
|
||||
allowImportExportEverywhere: true,
|
||||
},
|
||||
},
|
||||
settings: {
|
||||
@@ -48,21 +47,25 @@ module.exports = {
|
||||
window: true,
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/dot-notation': 'off',
|
||||
'@typescript-eslint/no-implied-eval': 'off',
|
||||
'@typescript-eslint/no-throw-literal': 'off',
|
||||
'@typescript-eslint/return-await': 'off',
|
||||
|
||||
// FIXME A bug with eslint-parser
|
||||
'template-curly-spacing': 'off',
|
||||
indent: 'off',
|
||||
|
||||
'comma-dangle': [
|
||||
'error',
|
||||
'always-multiline',
|
||||
],
|
||||
// indent: [
|
||||
// 'error',
|
||||
// 2,
|
||||
// {
|
||||
// SwitchCase: 0,
|
||||
// },
|
||||
// ],
|
||||
indent: [
|
||||
'error',
|
||||
2,
|
||||
{
|
||||
SwitchCase: 0,
|
||||
},
|
||||
],
|
||||
'max-len': ['error', 150],
|
||||
quotes: 'warn',
|
||||
'class-methods-use-this': 'off',
|
||||
|
||||
Reference in new issue
Block a user