mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-09 14:48:12 -05:00
chore(website): add eslint config for tsx files
Former-commit-id: 8419513eac
This commit is contained in:
@@ -36,4 +36,4 @@ yarn-error.log*
|
||||
# packages
|
||||
cli-template-*
|
||||
|
||||
!apps/website/src/app/build
|
||||
!apps/website/src/app/build
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"env": {
|
||||
"es6": true
|
||||
},
|
||||
"extends": ["airbnb-base", "airbnb-typescript/base", "plugin:jest/recommended", "plugin:jest/style", "prettier"],
|
||||
"extends": ["airbnb", "airbnb-typescript/base", "plugin:jest/recommended", "plugin:jest/style", "prettier"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 6,
|
||||
@@ -12,6 +12,10 @@
|
||||
},
|
||||
"plugins": ["@typescript-eslint", "jest"],
|
||||
"rules": {
|
||||
"react/require-default-props": "off",
|
||||
"react/jsx-props-no-spreading": "off",
|
||||
"react/react-in-jsx-scope": "off",
|
||||
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
|
||||
"import/prefer-default-export": "off",
|
||||
"import/extensions": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
|
||||
@@ -46,4 +46,4 @@ snark-artifacts
|
||||
.next/
|
||||
public
|
||||
|
||||
!apps/website/src/app/build
|
||||
!apps/website/src/app/build
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"test": "yarn test:libraries && yarn test:contracts",
|
||||
"test:libraries": "jest --coverage",
|
||||
"test:contracts": "yarn workspace contracts test:coverage",
|
||||
"lint": "eslint . --ext .js,.ts && yarn workspace contracts lint",
|
||||
"lint": "eslint . --ext .js,.ts,.tsx && yarn workspace contracts lint",
|
||||
"prettier": "prettier -c .",
|
||||
"prettier:write": "prettier -w .",
|
||||
"docs": "typedoc --cname js.semaphore.pse.dev --githubPages true",
|
||||
@@ -66,11 +66,14 @@
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"dotenv": "^16.0.2",
|
||||
"eslint": "^8.2.0",
|
||||
"eslint-config-airbnb-base": "15.0.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-config-airbnb-typescript": "^16.1.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-import": "^2.25.2",
|
||||
"eslint-plugin-jest": "^25.7.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.8.0",
|
||||
"eslint-plugin-react": "^7.33.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"husky": "^8.0.3",
|
||||
"jest": "^27.4.1",
|
||||
"jest-config": "^27.4.7",
|
||||
|
||||
@@ -1 +1 @@
|
||||
024a9bd01eba0a85e044b19f8127beafc9fe39fc
|
||||
efc0114806bb257b01da48b980cae99a86665c5b
|
||||
Reference in New Issue
Block a user