mirror of
https://github.com/tencentmusic/cube-studio.git
synced 2024-12-21 06:19:31 +08:00
40 lines
989 B
Plaintext
40 lines
989 B
Plaintext
{
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"commonjs": true,
|
|
"node": true,
|
|
"es6": true
|
|
},
|
|
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
|
|
"globals": {
|
|
"describe": true,
|
|
"beforeEach": true,
|
|
"it": true,
|
|
"expect": true
|
|
},
|
|
"plugins": ["react","@typescript-eslint"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module",
|
|
"allowImportExportEverywhere": true
|
|
},
|
|
"rules": {
|
|
"no-alert": "error",
|
|
"no-eval": "error",
|
|
"spaced-comment": ["error", "always"],
|
|
// "linebreak-style": ["error", "windows"],
|
|
"linebreak-style": ["error", "unix"],
|
|
"react/prop-types": 0,
|
|
"no-console": 0,
|
|
"no-useless-escape": 0,
|
|
"@typescript-eslint/no-explicit-any": 0,
|
|
"@typescript-eslint/camelcase": 0,
|
|
"@typescript-eslint/explicit-function-return-type": 0
|
|
}
|
|
}
|