mirror of
https://gitee.com/dcren/cloud-native-app-initializer.git
synced 2026-05-20 09:51:29 +08:00
Project initial
This commit is contained in:
50
initializer-page/.eslintrc
Normal file
50
initializer-page/.eslintrc
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"extends": [
|
||||
"airbnb",
|
||||
"airbnb/hooks",
|
||||
"plugin:jest/recommended",
|
||||
"plugin:prettier/recommended",
|
||||
"prettier",
|
||||
"prettier/react"
|
||||
],
|
||||
"parser": "babel-eslint",
|
||||
"env": {
|
||||
"browser": true,
|
||||
"jest": true
|
||||
},
|
||||
"plugins": [
|
||||
"prettier",
|
||||
"jest"
|
||||
],
|
||||
"rules": {
|
||||
"import/prefer-default-export": "off",
|
||||
"react/jsx-filename-extension": [
|
||||
1,
|
||||
{
|
||||
"extensions": [
|
||||
".js"
|
||||
]
|
||||
}
|
||||
],
|
||||
"react/no-find-dom-node": 0,
|
||||
"class-methods-use-this": "off",
|
||||
"jsx-a11y/anchor-is-valid": [
|
||||
"error",
|
||||
{
|
||||
"components": [
|
||||
"Link"
|
||||
],
|
||||
"specialLink": [
|
||||
"to",
|
||||
"hrefLeft",
|
||||
"hrefRight"
|
||||
],
|
||||
"aspects": [
|
||||
"noHref",
|
||||
"invalidHref",
|
||||
"preferButton"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user