conf: ESLint
parent
3d459ebdf2
commit
0ec6966e75
@ -0,0 +1,35 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": [
|
||||
"standard",
|
||||
"plugin:react/recommended",
|
||||
"prettier"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"react"
|
||||
],
|
||||
"rules": {
|
||||
// "no-useless-constructor": "off",
|
||||
"semi": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"camelcase": [
|
||||
1,
|
||||
{
|
||||
// "allow": ["_store$"],
|
||||
"ignoreImports": true,
|
||||
"ignoreGlobals": true
|
||||
}
|
||||
],
|
||||
"no-unused-vars": [1],
|
||||
"spaced-comment": [1]
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"tabWidth": 4,
|
||||
"useTabs": false,
|
||||
"printWidth": 120,
|
||||
"singleQuote": true,
|
||||
"quoteProps": "preserve",
|
||||
"semi": true,
|
||||
"singleAttributePerLine": false,
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.jsx",
|
||||
"options": {
|
||||
"tabWidth": 2
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue