forked from solana-foundation/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
21 lines (21 loc) · 863 Bytes
/
.eslintrc.json
File metadata and controls
21 lines (21 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"extends": ["next/core-web-vitals", "@solana/eslint-config-solana"],
"plugins": ["testing-library", "simple-import-sort"],
"rules": {
"semi": ["error", "always"],
// Temporary rule to ignore any explicit any type warnings in TypeScript files
"@typescript-eslint/no-explicit-any": "off",
"object-curly-spacing": ["error", "always"],
// Do not rely on non-null assertions, please. Make it off to see other errors.
"@typescript-eslint/no-non-null-assertion": "off",
// Import sorting rules
"simple-import-sort/imports": "error"
},
"overrides": [
// Only uses Testing Library lint rules in test files
{
"files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
"extends": ["plugin:testing-library/react"]
}
]
}