5cb4949d46
Hopefully this will make it a bit clearer as to what people should compile if they want the wallet.
110 lines
2.6 KiB
Plaintext
110 lines
2.6 KiB
Plaintext
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"node": true,
|
|
"jest": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 2019,
|
|
"sourceType": "module"
|
|
},
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"plugins": ["react", "react-hooks", "jsx-a11y", "prettier", "jest"],
|
|
"extends": [
|
|
"plugin:react/recommended",
|
|
"airbnb",
|
|
"prettier",
|
|
"plugin:jest/recommended",
|
|
"plugin:jest/style"
|
|
],
|
|
"rules": {
|
|
"jest/prefer-strict-equal": "error",
|
|
"jest/prefer-to-have-length": "warn",
|
|
"prettier/prettier": "error",
|
|
"import/prefer-default-export": "off",
|
|
"react/prop-types": "off",
|
|
"react/jsx-filename-extension": "off",
|
|
"react/jsx-props-no-spreading": "off",
|
|
"import/no-extraneous-dependencies": [
|
|
"error",
|
|
{
|
|
"devDependencies": [
|
|
"**/*.test.[jt]s",
|
|
"**/*.spec.[jt]s",
|
|
"**/*.test.[jt]sx",
|
|
"**/*.spec.[jt]sx"
|
|
]
|
|
}
|
|
],
|
|
"import/extensions": [
|
|
"error",
|
|
"ignorePackages",
|
|
{
|
|
"ts": "never",
|
|
"tsx": "never",
|
|
"js": "never",
|
|
"jsx": "never"
|
|
}
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": "**/*.+(ts|tsx)",
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"plugins": ["@typescript-eslint/eslint-plugin"],
|
|
"extends": [
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"prettier"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"no-use-before-define": [0],
|
|
"@typescript-eslint/no-use-before-define": [1],
|
|
"import/no-unresolved": 0,
|
|
"import/no-extraneous-dependencies": [
|
|
"error",
|
|
{
|
|
"devDependencies": [
|
|
"**/*.test.ts",
|
|
"**/*.spec.ts",
|
|
"**/*.test.tsx",
|
|
"**/*.spec.tsx"
|
|
]
|
|
}
|
|
],
|
|
"quotes": "off",
|
|
"@typescript-eslint/quotes": [
|
|
2,
|
|
"single",
|
|
{
|
|
"avoidEscape": true
|
|
}
|
|
],
|
|
"@typescript-eslint/no-unused-vars": [2, { "argsIgnorePattern": "^_" }]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"import/resolver": {
|
|
"root-import": {
|
|
"rootPathPrefix": "@",
|
|
"rootPathSuffix": "src",
|
|
"extensions": [".js", ".ts", ".tsx", ".jsx", ".mdx"]
|
|
}
|
|
}
|
|
}
|
|
}
|