mirror of
https://github.com/strapi/strapi.git
synced 2025-12-11 15:04:33 +00:00
35 lines
704 B
Plaintext
35 lines
704 B
Plaintext
{
|
|
"root": true,
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.js", "**/*.jsx"],
|
|
"extends": ["custom/front"],
|
|
"rules": {
|
|
"import/extensions": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
"extends": ["custom/front/typescript"]
|
|
},
|
|
{
|
|
"files": ["./tests/*", "**/*.test.*"],
|
|
"env": {
|
|
"jest": true
|
|
},
|
|
"rules": {
|
|
/**
|
|
* So we can do `import { render } from '@tests/utils'`
|
|
*/
|
|
"import/no-unresolved": "off",
|
|
"check-file/folder-match-with-fex": [
|
|
"error",
|
|
{
|
|
"*.test.{js,jsx,ts,tsx}": "**/{__tests__,tests}/**"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|