added initial files
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"root": true,
|
||||
"extends": ["airbnb", "prettier", "plugin:prettier/recommended"],
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"settings": {
|
||||
"import/resolver": {
|
||||
"alias": {
|
||||
"map": [
|
||||
["^ui$", "./src/ui"],
|
||||
["app", "./src/app/"],
|
||||
["common", "./src/common"]
|
||||
],
|
||||
"extensions": [".js", ".jsx", ".json", ".svg", ".png", ".jpg"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"parser": "babel-eslint",
|
||||
"plugins": [
|
||||
"react",
|
||||
"prettier",
|
||||
"compat",
|
||||
"import",
|
||||
"jsx-a11y",
|
||||
"promise",
|
||||
"react-hooks"
|
||||
],
|
||||
"rules": {
|
||||
"prettier/prettier": "error",
|
||||
"jsx-a11y/aria-role": "off",
|
||||
"no-restricted-syntax": "off",
|
||||
"no-unused-vars": "error",
|
||||
"no-unused-expressions": "error",
|
||||
"consistent-return": "off",
|
||||
"jsx-a11y/no-static-element-interactions": "off",
|
||||
"jsx-a11y/click-events-have-key-events": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
"no-console": "off",
|
||||
"no-continue": "off",
|
||||
"no-use-before-define": "off",
|
||||
"no-await-in-loop": "off",
|
||||
"default-param-last": "off",
|
||||
"no-promise-executor-return": "off",
|
||||
"import/no-import-module-exports": "off",
|
||||
"react/destructuring-assignment": "off",
|
||||
"promise/param-names": "error",
|
||||
"promise/always-return": "error",
|
||||
"promise/catch-or-return": "error",
|
||||
"promise/no-native": "off",
|
||||
"react/sort-comp": [
|
||||
"error",
|
||||
{
|
||||
"order": [
|
||||
"type-annotations",
|
||||
"static-methods",
|
||||
"lifecycle",
|
||||
"everything-else",
|
||||
"render"
|
||||
]
|
||||
}
|
||||
],
|
||||
"react/jsx-no-bind": "off",
|
||||
"react/jsx-filename-extension": "off",
|
||||
"react/prop-types": "off",
|
||||
"react/function-component-definition": "off",
|
||||
"react/forbid-dom-props": [2, { "forbid": ["style"] }],
|
||||
"import/no-anonymous-default-export": [
|
||||
"error",
|
||||
{
|
||||
"allowArray": false,
|
||||
"allowArrowFunction": false,
|
||||
"allowAnonymousClass": false,
|
||||
"allowAnonymousFunction": false,
|
||||
"allowCallExpression": true,
|
||||
"allowLiteral": false,
|
||||
"allowObject": true
|
||||
}
|
||||
],
|
||||
"react/jsx-pascal-case": [2, { "allowAllCaps": false }],
|
||||
"react/prefer-stateless-function": "off",
|
||||
"import/no-unresolved": "off",
|
||||
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
|
||||
"jsx-a11y/anchor-is-valid": "off"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user